components: use const bool& parameter in paint methodes

Origin commit data
------------------
Branch: ni/coolstream
Commit: 07d8f07d4d
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-10-27 (Sun, 27 Oct 2019)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2019-10-27 22:56:49 +01:00
committed by vanhofen
parent cfa35a8344
commit e8929e8cbd
43 changed files with 61 additions and 60 deletions

View File

@@ -36,7 +36,7 @@ class CComponentsForm : public CComponentsItem
{
protected:
std::vector<CComponentsItem*> v_cc_items;
void paintForm(bool do_save_bg);
void paintForm(const bool &do_save_bg);
///generates next possible index for an item, see also cc_item_index, getIndex(), setIndex()
int genIndex();
@@ -77,7 +77,7 @@ class CComponentsForm : public CComponentsItem
virtual ~CComponentsForm();
///paints current form on screen, for paint a page use paintPage()
void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
void paint(const bool &do_save_bg = CC_SAVE_SCREEN_YES);
///same like CComponentsItem::kill(), but erases all embedded items inside of parent at once, this = parent
///NOTE: Items always have parent bindings to "this" and use the parent background color as default! Set parameter 'ignore_parent=true' to ignore parent background color!
@@ -170,7 +170,7 @@ class CComponentsForm : public CComponentsItem
///get current page
uint8_t getCurrentPage(){return cur_page;};
///paint defined page number 0...n
void paintPage(const uint8_t& page_number, bool do_save_bg = CC_SAVE_SCREEN_NO);
void paintPage(const uint8_t& page_number, const bool &do_save_bg = CC_SAVE_SCREEN_NO);
///enum page scroll modes
enum
{