Initialize with = instead of braces, and drop const from local autos
Scalars get = 0, = false or = nullptr. Standard containers and strings rely on their constructors.
Other types get = {} or = value, and lists keep = {...}.
glm types are left alone until they're replaced.
This commit is contained in:
1 parent
666f65bf3a
commit
40f6b554b5
138 files changed
+1500
-1500
No files matched your search
+2
-2
@@ -14,7 +14,7 @@
|
||||
Font fonts[FONT_COUNT]{};
|
||||
Image icons[ICON_COUNT]{};
|
||||
ShaderProgram shaders[SHADER_COUNT]{};
|
||||
AudioData music{};
|
||||
AudioData music = {};
|
||||
|
||||
Resources();
|
||||
GLuint icon_id_get(int);
|
||||
@@ -22,5 +22,5 @@
|
||||
AudioData* music_track_if_loaded();
|
||||
|
||||
private:
|
||||
bool isMusicLoaded{false};
|
||||
bool isMusicLoaded = false;
|
||||
};
|
||||
Reference in new issue
Block a user