cc_frm: us at member inside addCCItem() for more safety

This commit is contained in:
2019-10-27 16:24:47 +01:00
parent 689d35db25
commit 969644c39a

View File

@@ -222,7 +222,7 @@ int CComponentsForm::addCCItem(CComponentsItem* cc_Item)
int CComponentsForm::addCCItem(const std::vector<CComponentsItem*> &cc_Items)
{
for (size_t i= 0; i< cc_Items.size(); i++)
addCCItem(cc_Items[i]);
addCCItem(cc_Items.at(i));
return size();
}