mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-16 19:48:46 -04:00
Improve array size assert.
This commit is contained in:
parent
782223a643
commit
1b9c2bb16b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue