fix init order warning

This commit is contained in:
Alex Fabijanic 2017-06-26 21:02:14 +02:00
parent 303861cf11
commit 1f27dcf5c0
2 changed files with 4 additions and 6 deletions

View File

@ -289,9 +289,8 @@ static void blake2b_compress(blake2b_state *S, const uint8_t block[BLAKE2B_BLOCK
}
}
BLAKE2Engine::BLAKE2Engine(ALGORITHM algorithm)
: _algorithm(algorithm)
, _context(NULL)
BLAKE2Engine::BLAKE2Engine(ALGORITHM algorithm): _context(NULL),
_algorithm(algorithm)
{
_digest.reserve(digestLength());
reset();

View File

@ -123,9 +123,8 @@ typedef struct
unsigned char delimitedSuffix;
} HASHCONTEXT;
SHA3Engine::SHA3Engine(ALGORITHM algorithm)
: _algorithm(algorithm)
, _context(NULL)
SHA3Engine::SHA3Engine(ALGORITHM algorithm): _context(NULL),
_algorithm(algorithm)
{
_digest.reserve(digestLength());
reset();