mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Improve array size assert.
This commit is contained in:
parent
782223a643
commit
1b9c2bb16b
@ -132,7 +132,7 @@ QPixmap DatabaseIcons::iconPixmap(int index)
|
|||||||
|
|
||||||
DatabaseIcons::DatabaseIcons()
|
DatabaseIcons::DatabaseIcons()
|
||||||
{
|
{
|
||||||
Q_STATIC_ASSERT(sizeof(DatabaseIcons::m_indexToName) == DatabaseIcons::IconCount * sizeof(char*));
|
Q_STATIC_ASSERT(sizeof(m_indexToName) == IconCount * sizeof(m_indexToName[0]));
|
||||||
|
|
||||||
m_iconCache.reserve(IconCount);
|
m_iconCache.reserve(IconCount);
|
||||||
m_iconCache.resize(IconCount);
|
m_iconCache.resize(IconCount);
|
||||||
|
Loading…
Reference in New Issue
Block a user