mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-28 12:57:03 -08:00
Reduce number of unneeded copies
This patch aims at reducing the number of copies for obejcts that could be referenced rather than copied, because they're not modified during the computation.
This commit is contained in:
40 files changed
+90
-90
No files matched your search
@@ -245,7 +245,7 @@ QByteArray HmacBlockStream::getCurrentHmacKey() const
|
||||
return getHmacKey(m_blockIndex, m_key);
|
||||
}
|
||||
|
||||
QByteArray HmacBlockStream::getHmacKey(quint64 blockIndex, QByteArray key)
|
||||
QByteArray HmacBlockStream::getHmacKey(quint64 blockIndex, const QByteArray& key)
|
||||
{
|
||||
Q_ASSERT(key.size() == 64);
|
||||
QByteArray indexBytes = Endian::sizedIntToBytes<quint64>(blockIndex, ByteOrder);
|
||||
|
||||
Reference in new issue
Block a user