summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcompletion_test.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2020-08-06 14:02:05 +0200
committerhjk <hjk@qt.io>2020-08-07 12:45:03 +0000
commit52b2ca55c9ba0cbb33099c88b529c046bb27a252 (patch)
tree5fe1af763b455ce06527dd495483dffb3f00d540 /src/plugins/cpptools/cppcompletion_test.cpp
parente69d90bc1aa543a824229a65a3d1b3320a9c98a1 (diff)
downloadqt-creator-52b2ca55c9ba0cbb33099c88b529c046bb27a252.tar.gz
Replace QT_USE_FAST_{OPERATOR_PLUS,CONCATENTION} by QT_USE_QSTRINGBUILDER
QT_USE_FAST_CONCATENATION doesn't do anything nowadays. Using QT_USE_QSTRINGBUILDER is the same as QT_USE_FAST_OPERATOR_PLUS for QStrings and enables more QStringBuilder use for QByteArrays. Change-Id: Ibd297817c50d86661d47822799f989447249af1b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppcompletion_test.cpp')
-rw-r--r--src/plugins/cpptools/cppcompletion_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cppcompletion_test.cpp b/src/plugins/cpptools/cppcompletion_test.cpp
index 44274da954..09b1695e9a 100644
--- a/src/plugins/cpptools/cppcompletion_test.cpp
+++ b/src/plugins/cpptools/cppcompletion_test.cpp
@@ -427,11 +427,11 @@ static void enumTestCase(const QByteArray &tag, const QByteArray &source,
QTest::newRow(tag) << fullSource << (prefix + "val")
<< QStringList({"val1", "val2", "val3"});
- QTest::newRow(tag + "_cxx11") << fullSource << (prefix + "E::")
+ QTest::newRow(QByteArray{tag + "_cxx11"}) << fullSource << QByteArray{prefix + "E::"}
<< QStringList({"E", "val1", "val2", "val3"});
fullSource.replace("enum E ", "enum ");
- QTest::newRow(tag + "_anon") << fullSource << (prefix + "val")
+ QTest::newRow(QByteArray{tag + "_anon"}) << fullSource << QByteArray{prefix + "val"}
<< QStringList({"val1", "val2", "val3"});
}