diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-07-29 13:06:30 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-29 09:38:10 -0700 |
commit | 357f5c19dacfb02c241f6c7b94e40bd2d92bc964 (patch) | |
tree | 07000fc79bd89b5eb7c8c87809c682d7966033c6 /qt-ui/groupedlineedit.cpp | |
parent | 8c8657f9965ccebc481a741bd8d525f13ff5b8b0 (diff) | |
download | subsurface-357f5c19dacfb02c241f6c7b94e40bd2d92bc964.tar.gz |
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>
Diffstat (limited to 'qt-ui/groupedlineedit.cpp')
-rw-r--r-- | qt-ui/groupedlineedit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/groupedlineedit.cpp b/qt-ui/groupedlineedit.cpp index 28758e02f..4867089f4 100644 --- a/qt-ui/groupedlineedit.cpp +++ b/qt-ui/groupedlineedit.cpp @@ -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; } |