Improve array size assert.

This commit is contained in:
Felix Geyer 2012-07-01 22:21:49 +02:00
parent 782223a643
commit 1b9c2bb16b

View File

@ -132,7 +132,7 @@ QPixmap DatabaseIcons::iconPixmap(int index)
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.resize(IconCount);