initialize members once from QKatHash constructor

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-08-22 19:04:00 +03:00
parent 5a42c98676
commit 6665c58b83

View file

@ -51,11 +51,9 @@ private:
};
QKatHash::QKatHash()
: m_xxh3(nullptr),
m_xxh32(nullptr)
: m_xxh3(XXH3_createState()),
m_xxh32(XXH3_createState())
{
m_xxh3 = XXH3_createState();
m_xxh32 = XXH3_createState();
}
QKatHash::~QKatHash()