mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +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]);
|
||||
|
Reference in New Issue
Block a user