summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-pt')
-rw-r--r--tracker-pt/ftnoir_tracker_pt_dialog.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt_dialog.cpp b/tracker-pt/ftnoir_tracker_pt_dialog.cpp
index fa159d34..2f554cbf 100644
--- a/tracker-pt/ftnoir_tracker_pt_dialog.cpp
+++ b/tracker-pt/ftnoir_tracker_pt_dialog.cpp
@@ -88,8 +88,7 @@ TrackerDialog_PT::TrackerDialog_PT()
pt_color_red_only,
};
- static constexpr unsigned color_type_sz = sizeof(color_types) / sizeof(*color_types);
- for (unsigned k = 0; k < color_type_sz; k++)
+ for (unsigned k = 0; k < std::size(color_types); k++)
ui.blob_color->setItemData(k, int(color_types[k]));
tie_setting(s.blob_color, ui.blob_color);