mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
CComponentsForm: use passed by reference in addCCItem()
Function parameter 'cc_Items' should be passed by reference (performance).
Origin commit data
------------------
Branch: ni/coolstream
Commit: abe1de16b0
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-12-24 (Tue, 24 Dec 2013)
------------------
This commit was generated by Migit
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