aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/perfprofiler
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/perfprofiler
parente69d90bc1aa543a824229a65a3d1b3320a9c98a1 (diff)
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/perfprofiler')
-rw-r--r--src/plugins/perfprofiler/perfconfigeventsmodel.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/perfprofiler/perfconfigeventsmodel.cpp b/src/plugins/perfprofiler/perfconfigeventsmodel.cpp
index bdd419ec8cd..304adfa4a52 100644
--- a/src/plugins/perfprofiler/perfconfigeventsmodel.cpp
+++ b/src/plugins/perfprofiler/perfconfigeventsmodel.cpp
@@ -395,15 +395,16 @@ PerfConfigEventsModel::EventDescription PerfConfigEventsModel::parseEvent(
if (!extras.isEmpty()) {
QMetaEnum operationMeta = QMetaEnum::fromType<Operation>();
- int operation = operationMeta.keyToValue(QByteArray("Operation")
- + extras.takeFirst().toLatin1());
+ int operation = operationMeta.keyToValue(
+ QByteArray{"Operation" + extras.takeFirst().toLatin1()});
if (operation != -1)
description.operation = operation;
}
if (!extras.isEmpty()) {
QMetaEnum resultMeta = QMetaEnum::fromType<Result>();
- int result = resultMeta.keyToValue(QByteArray("Result") + extras.takeFirst().toLatin1());
+ int result = resultMeta.keyToValue(
+ QByteArray{"Result" + extras.takeFirst().toLatin1()});
if (result != -1)
description.result = Result(result);
}