mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
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:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user