diff options
author | Marc Mutz <marc.mutz@qt.io> | 2023-02-22 07:53:29 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-02-24 00:10:57 +0000 |
commit | 46872238ea9579cb2d4a7a348e0d91d426fe2b71 (patch) | |
tree | 4b2c718daf784b8613dbdd9ebe0b9a1b43efea9a /tests | |
parent | d90ad97e8b7589902025620e251c29023f1bc0e1 (diff) | |
download | qtbase-46872238ea9579cb2d4a7a348e0d91d426fe2b71.tar.gz |
QCryptographicHash: move SmallByteArray out of Private
Rename it to QSmallByteArray, and make the maximum size a template
argument. Initialize m_size to 0, to avoid a partially-formed
default-constructed objects (default-constructed containers should
always be in the empty state).
As a drive-by, fix placement of some {'s.
Don't move it into a header of its own, yet, as it lacks a lot of
features expected of a generally-reusable class. Maybe one day.
This is in preparation of re-using the class to hold the key in
QMessageAuthenticationCode.
Change-Id: Iee77e03e50afdf2ebc5889feeead344bef8ab3e8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 29050fa65b7c755ec3238ff0cc238c626832bc8c)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions