mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
components: use const bool& parameter in paint methodes
This commit is contained in:
@@ -278,7 +278,7 @@ bool CComponentsText::setTextFromFile(const string& path_to_textfile, const int
|
||||
return setText(txt, mode, font_text, color_text, style);
|
||||
}
|
||||
|
||||
void CComponentsText::paintText(bool do_save_bg)
|
||||
void CComponentsText::paintText(const bool &do_save_bg)
|
||||
{
|
||||
if (cc_parent){
|
||||
if(!cc_parent->OnAfterPaintBg.empty())
|
||||
@@ -300,7 +300,7 @@ void CComponentsText::paintText(bool do_save_bg)
|
||||
ct_text_sent = false;
|
||||
}
|
||||
|
||||
void CComponentsText::paint(bool do_save_bg)
|
||||
void CComponentsText::paint(const bool &do_save_bg)
|
||||
{
|
||||
OnBeforePaint();
|
||||
paintText(do_save_bg);
|
||||
|
Reference in New Issue
Block a user