From ed5b09a97fe3f06e9c7dc1e942b82786cc0bf24b Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 1 Jan 2019 21:50:50 +0100 Subject: [PATCH] cc_frm_clock.cpp: declare force_repaint as const Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/cd042bd93688374ad2973cd857b1fac959b31ddd Author: Thilo Graf Date: 2019-01-01 (Tue, 01 Jan 2019) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/components/cc_frm_clock.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/components/cc_frm_clock.cpp b/src/gui/components/cc_frm_clock.cpp index ccc4c5fce..9ae0105d4 100644 --- a/src/gui/components/cc_frm_clock.cpp +++ b/src/gui/components/cc_frm_clock.cpp @@ -227,6 +227,8 @@ void CComponentsFrmClock::initCCLockItems() //summary of all segments (labels) int w_segments = 0; + const bool force_repaint = cl_force_repaint; + /* modify available label items with current segment chars * we are using segments with only one char per segment, * these chars are predefined via format string @@ -260,7 +262,7 @@ void CComponentsFrmClock::initCCLockItems() //set size, text, color of current item lbl->setDimensionsAll(x_tmp, y_tmp, w_tmp, h_tmp); lbl->setColorAll(col_frame, col_body, col_shadow); - lbl->forceTextPaint(cl_force_repaint); + lbl->forceTextPaint(force_repaint); lbl->setText(stmp, CTextBox::CENTER, cl_font, cl_col_text, cl_font_style); //init background behavior of segment