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:
shweet committed 2026-11-22 17:27:24 -05:00
1 parent 666f65bf3a
commit 40f6b554b5
138 files changed
+1500 -1500

No files matched your search

+13 -13
View File
@@ -12,21 +12,21 @@
class Dockspace
{
AnimationPreview animationPreview;
bool isCanvasFocused{};
float reloadTime{};
AnimationsPanel animations{};
RegionsPanel regions{};
PanelState events{};
FramePropertiesPanel frameProperties{};
PanelState layers{};
PanelState nulls{};
ShadersPanel shaders{};
bool isCanvasFocused = false;
float reloadTime = 0;
AnimationsPanel animations = {};
RegionsPanel regions = {};
PanelState events = {};
FramePropertiesPanel frameProperties = {};
PanelState layers = {};
PanelState nulls = {};
ShadersPanel shaders = {};
SpritesheetEditor spritesheetEditor;
SpritesheetsPanel spritesheets{};
PanelState sounds{};
PanelState libraries{};
SpritesheetsPanel spritesheets = {};
PanelState sounds = {};
PanelState libraries = {};
Timeline timeline;
PopupHelper toolsColorEditPopup{PopupHelper(LABEL_TOOLS_COLOR_EDIT_POPUP, POPUP_TO_CONTENT, POPUP_BY_ITEM)};
PopupHelper toolsColorEditPopup = PopupHelper(LABEL_TOOLS_COLOR_EDIT_POPUP, POPUP_TO_CONTENT, POPUP_BY_ITEM);
AutosaveRestore autosaveRestore;
public: