mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 12:19:03 +03:00
Use default member init for PKeyCtx::_ctx and PKey::_pkey
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
This commit is contained in:
parent
00f93fdb77
commit
ed570d6274
1 changed files with 4 additions and 15 deletions
|
@ -137,7 +137,6 @@ namespace {
|
|||
// and we have a `forKey` static function that returns
|
||||
// an instance of this class
|
||||
PKeyCtx(PKeyCtx&& other)
|
||||
: _ctx(nullptr)
|
||||
{
|
||||
std::swap(_ctx, other._ctx);
|
||||
}
|
||||
|
@ -159,12 +158,9 @@ namespace {
|
|||
private:
|
||||
Q_DISABLE_COPY(PKeyCtx)
|
||||
|
||||
PKeyCtx()
|
||||
: _ctx(nullptr)
|
||||
{
|
||||
}
|
||||
PKeyCtx() = default;
|
||||
|
||||
EVP_PKEY_CTX* _ctx;
|
||||
EVP_PKEY_CTX* _ctx = nullptr;
|
||||
};
|
||||
|
||||
class PKey {
|
||||
|
@ -179,7 +175,6 @@ namespace {
|
|||
// and we have a static functions that return
|
||||
// an instance of this class
|
||||
PKey(PKey&& other)
|
||||
: _pkey(nullptr)
|
||||
{
|
||||
std::swap(_pkey, other._pkey);
|
||||
}
|
||||
|
@ -217,17 +212,11 @@ namespace {
|
|||
private:
|
||||
Q_DISABLE_COPY(PKey)
|
||||
|
||||
PKey()
|
||||
: _pkey(nullptr)
|
||||
{
|
||||
}
|
||||
PKey() = default;
|
||||
|
||||
EVP_PKEY* _pkey;
|
||||
EVP_PKEY* _pkey = nullptr;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
QByteArray BIO2ByteArray(Bio &b) {
|
||||
int pending = BIO_ctrl_pending(b);
|
||||
QByteArray res(pending, '\0');
|
||||
|
|
Loading…
Reference in a new issue