C++ Correctness and code cleanup.

Use const-reference where we can gain a bit of speed from that
and clear an else { if {}} by using else if.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-07-29 13:06:30 -03:00 committed by Dirk Hohndel
parent 8c8657f996
commit 357f5c19da
2 changed files with 5 additions and 7 deletions

View file

@ -106,7 +106,7 @@ void GroupedLineEdit::removeAllColors()
QStringList GroupedLineEdit::getBlockStringList()
{
QStringList retList;
foreach (Private::Block block, d->blocks)
foreach (const Private::Block &block, d->blocks)
retList.append(block.text);
return retList;
}