diff --git a/src/core/DatabaseIcons.cpp b/src/core/DatabaseIcons.cpp index 0f4f6e5be..c06d22b68 100644 --- a/src/core/DatabaseIcons.cpp +++ b/src/core/DatabaseIcons.cpp @@ -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);