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
@@ -388,7 +388,7 @@ using namespace glm;
ImGui::PopFont();
auto originLabel = localize.get(region->origin == Origin::TOP_LEFT ? LABEL_REGION_ORIGIN_TOP_LEFT
: LABEL_REGION_ORIGIN_CENTER);
for (const auto& line :
for (auto& line :
{localize_format(FORMAT_ID, hoveredRegionId),
localize_format(FORMAT_CROP, region->crop.x, region->crop.y),
localize_format(FORMAT_SIZE, region->size.x, region->size.y),