summaryrefslogtreecommitdiff
path: root/src/plugins/perfprofiler/perfconfigeventsmodel.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2019-01-17 02:09:05 +0100
committerAlessandro Portale <alessandro.portale@qt.io>2019-01-17 10:04:11 +0000
commitadea8467f4c74efc93c09864b1ea7e38c4754a8e (patch)
tree18d8eb4eaf3142dc586f6f9fa33a1680a1a08f15 /src/plugins/perfprofiler/perfconfigeventsmodel.cpp
parent504123cba5653e036bd8b59b23a7611a68dcb7b0 (diff)
downloadqt-creator-adea8467f4c74efc93c09864b1ea7e38c4754a8e.tar.gz
Fix warning: "Don't call QHash::operator[]() on temporary"
[-Wclazy-detaching-temporary] Change-Id: Ide503c9260af285fa1dbedb63f7819c8ad616db6 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'src/plugins/perfprofiler/perfconfigeventsmodel.cpp')
-rw-r--r--src/plugins/perfprofiler/perfconfigeventsmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/perfprofiler/perfconfigeventsmodel.cpp b/src/plugins/perfprofiler/perfconfigeventsmodel.cpp
index b11b99394b..ee36ce33f9 100644
--- a/src/plugins/perfprofiler/perfconfigeventsmodel.cpp
+++ b/src/plugins/perfprofiler/perfconfigeventsmodel.cpp
@@ -58,7 +58,7 @@ QVariant PerfConfigEventsModel::data(const QModelIndex &index, int role) const
return QVariant(); // ignore
}
- QString event = m_settings->events()[index.row()];
+ QString event = m_settings->events().value(index.row());
const EventDescription description = parseEvent(event);
switch (index.column()) {
case ColumnEventType: {