Avoid temporary container.

This commit is contained in:
Jim Evins
2018-02-10 15:30:12 -05:00
parent 7897aa542e
commit 0cc3be205f
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -56,6 +56,7 @@ namespace glabels
check->setChecked( mCategoryIdList.contains( category->id() ) );
categoriesLayout->addWidget( check );
mCheckList.append( check );
mCheckToCategoryMap[check] = category->id();
connect( check, SIGNAL(clicked()), this, SLOT(onCategoryCheckClicked()) );
@@ -231,7 +232,7 @@ namespace glabels
{
mCategoryIdList.clear();
foreach( QCheckBox* check, mCheckToCategoryMap.keys() )
foreach( QCheckBox* check, mCheckList )
{
if ( check->isChecked() )
{