mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
CComponentsForm: use passed by reference in addCCItem()
Function parameter 'cc_Items' should be passed by reference (performance).
This commit is contained in:
@@ -151,7 +151,7 @@ void CComponentsForm::addCCItem(CComponentsItem* cc_Item)
|
||||
#endif
|
||||
}
|
||||
|
||||
void CComponentsForm::addCCItem(const std::vector<CComponentsItem*> cc_Items)
|
||||
void CComponentsForm::addCCItem(const std::vector<CComponentsItem*> &cc_Items)
|
||||
{
|
||||
for (size_t i= 0; i< cc_Items.size(); i++)
|
||||
addCCItem(cc_Items[i]);
|
||||
|
@@ -57,7 +57,7 @@ class CComponentsForm : public CComponentsItem
|
||||
void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
|
||||
void hide(bool no_restore = false);
|
||||
virtual void addCCItem(CComponentsItem* cc_Item);
|
||||
virtual void addCCItem(const std::vector<CComponentsItem*> cc_items);
|
||||
virtual void addCCItem(const std::vector<CComponentsItem*> &cc_items);
|
||||
virtual void insertCCItem(const uint& cc_item_id, CComponentsItem* cc_Item);
|
||||
virtual void removeCCItem(const uint& cc_item_id);
|
||||
virtual void removeCCItem(CComponentsItem* cc_Item);
|
||||
|
Reference in New Issue
Block a user