summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-03-08 22:41:39 +0100
committerMarc Mutz <marc.mutz@kdab.com>2016-03-09 13:18:26 +0000
commit62e89f474551d6de025cc9d53950199df181de16 (patch)
tree1162d18769b9c50b06b09026821a5cb528070a8c /tests
parent3856099d9a6c9cd90747d530819df8c99198fa54 (diff)
tst_QMetaType: fix misleading indention
As found by GCC 6: tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp:1476:9: warning: statement is indented as if it were guarded by... [-Wmisleading-indentation] tn += ">"; ^~ tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp:1474:5: note: ...this ‘if’ clause, but it is not if (tn.endsWith('>')) ^~ Fix += argument from char[2] to char as a drive-by. Change-Id: I814dc58830934cac7fcf81eb7fd7564b2abeb631 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp
index c74a43b682..e35790351d 100644
--- a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp
+++ b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp
@@ -1475,7 +1475,7 @@ static QByteArray createTypeName(const char *begin, const char *va)
}
if (tn.endsWith('>'))
tn += ' ';
- tn += ">";
+ tn += '>';
return tn;
}
#endif