From 2658bc66b8b68212594c71f7b51199921c3c1df9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 23 Sep 2017 19:22:18 +0200 Subject: use std::size --- tracker-pt/ftnoir_tracker_pt_dialog.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tracker-pt/ftnoir_tracker_pt_dialog.cpp') 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); -- cgit v1.2.3