summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-09-23 19:22:18 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-09-23 19:22:18 +0200
commit2658bc66b8b68212594c71f7b51199921c3c1df9 (patch)
tree4edda3c602a069b310f9923db22b0fa87ef6b229 /tracker-pt
parentec34d6575fa03f1e137739ee1946f0ba9d3f2830 (diff)
use std::size
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);