aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/objects/KvsObject_vBox.cpp
diff options
context:
space:
mode:
authorGravatar Alexey Sokolov2016-04-30 18:48:40 +0100
committerGravatar Alexey Sokolov2016-04-30 18:50:45 +0100
commit97ecdf6a1b7f95bc1b342b3eaf141cd460249680 (patch)
treedfa139170f95eeda51f241580cc019ab0f4684d8 /src/modules/objects/KvsObject_vBox.cpp
parentApply clang-tidy: modernize-use-default (diff)
downloadKVIrc-97ecdf6a1b7f95bc1b342b3eaf141cd460249680.tar.gz
KVIrc-97ecdf6a1b7f95bc1b342b3eaf141cd460249680.tar.bz2
KVIrc-97ecdf6a1b7f95bc1b342b3eaf141cd460249680.zip
Apply clang-tidy: modernize-loop-convert
Diffstat (limited to 'src/modules/objects/KvsObject_vBox.cpp')
-rw-r--r--src/modules/objects/KvsObject_vBox.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/objects/KvsObject_vBox.cpp b/src/modules/objects/KvsObject_vBox.cpp
index a8a17d282..76f750fc1 100644
--- a/src/modules/objects/KvsObject_vBox.cpp
+++ b/src/modules/objects/KvsObject_vBox.cpp
@@ -192,13 +192,13 @@ KVSO_CLASS_FUNCTION(vBox, setAlignment)
}
int align, sum = 0;
- for(QStringList::Iterator it = alignment.begin(); it != alignment.end(); ++it)
+ for(auto & it : alignment)
{
align = 0;
for(unsigned int j = 0; j < align_num; j++)
{
- if(KviQString::equalCI((*it), align_tbl[j]))
+ if(KviQString::equalCI(it, align_tbl[j]))
{
align = align_cod[j];
break;
@@ -207,7 +207,7 @@ KVSO_CLASS_FUNCTION(vBox, setAlignment)
if(align)
sum = sum | align;
else
- c->warning(__tr2qs_ctx("Unknown alignment: '%Q'", "objects"), &(*it));
+ c->warning(__tr2qs_ctx("Unknown alignment: '%Q'", "objects"), &it);
}
if(widget())
((KviTalHBox *)widget())->setAlignment(((QWidget *)(pObject->object())), (Qt::Alignment)sum);