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

+1 -1
View File
@@ -3,7 +3,7 @@
TreeNodeInputTextResult tree_node_input_text(const std::string& label, const std::string& id, std::string& text,
bool isSelected, ImGuiTreeNodeFlags flags, RenameState& state)
{
TreeNodeInputTextResult result{};
TreeNodeInputTextResult result = {};
auto& editID = selectable_input_text_id();
auto isRename = editID == id;
auto treeFlags = flags | ImGuiTreeNodeFlags_FramePadding | (isSelected ? ImGuiTreeNodeFlags_Selected : 0);