Changeset View
Changeset View
Standalone View
Standalone View
src/kiconeffect.cpp
Context not available. | |||||
40 | class KIconEffectPrivate | 40 | class KIconEffectPrivate | ||
---|---|---|---|---|---|
41 | { | 41 | { | ||
42 | public: | 42 | public: | ||
43 | int effect[6][3]; | 43 | KIconEffectPrivate(): | ||
44 | float value[6][3]; | 44 | effect{{}} | ||
apol: To what does this initialize the array? | |||||
effect: 0 jtamate: effect: 0
value: 0
color: QColor(Invalid)
trans: false
key: ""
color2: QColor(Invalid)
| |||||
it may be a good idea to add a comment that links to http://en.cppreference.com/w/cpp/language/zero_initialization to clarify what's happening here mwolff: it may be a good idea to add a comment that links to http://en.cppreference. | |||||
45 | QColor color[6][3]; | 45 | ,value{{}} | ||
46 | bool trans[6][3]; | 46 | ,color{{}} | ||
47 | QString key[6][3]; | 47 | ,trans{{}} | ||
48 | QColor color2[6][3]; | 48 | ,key{{}} | ||
49 | ,color2{{}} | ||||
anthonyfieroni: You can use {{}} to all | |||||
50 | { | ||||
51 | } | ||||
52 | | ||||
53 | public: | ||||
54 | int effect[KIconLoader::LastGroup][KIconLoader::LastState]; | ||||
55 | float value[KIconLoader::LastGroup][KIconLoader::LastState]; | ||||
56 | QColor color[KIconLoader::LastGroup][KIconLoader::LastState]; | ||||
57 | bool trans[KIconLoader::LastGroup][KIconLoader::LastState]; | ||||
58 | QString key[KIconLoader::LastGroup][KIconLoader::LastState]; | ||||
59 | QColor color2[KIconLoader::LastGroup][KIconLoader::LastState]; | ||||
49 | }; | 60 | }; | ||
50 | 61 | | |||
51 | KIconEffect::KIconEffect() | 62 | KIconEffect::KIconEffect() | ||
Context not available. |
To what does this initialize the array?