Avoid an asan runtime error
Summary: Initialize the arrays to the maximum size of the enums and use c++11 initialization to ensure that all values are set to zero (or equivalent).
Test Plan:
execute kdialog --getexistingdirectory smb://
before the patch, the following messages from gcc asan are displayed:
kdesrc/frameworks/kiconthemes/src/kiconeffect.cpp:170:51: runtime error: index 3 out of bounds for type 'int [3]'
kdesrc/frameworks/kiconthemes/src/kiconeffect.cpp:172:51: runtime error: index 3 out of bounds for type 'float [3]'
kdesrc/frameworks/kiconthemes/src/kiconeffect.cpp:174:40: runtime error: index 3 out of bounds for type 'bool [3]'
kdesrc/frameworks/kiconthemes/src/kiconeffect.cpp:176:35: runtime error: index 3 out of bounds for type 'int [3]'
kdesrc/frameworks/kiconthemes/src/kiconeffect.cpp:176:74: runtime error: index 3 out of bounds for type 'int [3]'
kdesrc/frameworks/kiconthemes/src/kiconeffect.cpp:180:35: runtime error: index 3 out of bounds for type 'int [3]'
This runtime error is not shown any more.
Reviewers: Frameworks, mwolff
Reviewed By: mwolff
Subscribers: mwolff, apol, anthonyfieroni
Tags: Frameworks
Differential Revision: https://phabricator.kde.org/D11132