CComponentsForm: use passed by reference in addCCItem()

Function parameter 'cc_Items' should be passed by reference (performance).


Origin commit data
------------------
Commit: abe1de16b0
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-12-24 (Tue, 24 Dec 2013)
This commit is contained in:
2013-12-24 15:27:03 +01:00
parent 9a8f946966
commit 2c61cdb86e
2 changed files with 2 additions and 2 deletions

View File

@@ -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]);