From kde-commits Thu Aug 30 21:20:57 2018 From: Friedrich W. H. Kossebau Date: Thu, 30 Aug 2018 21:20:57 +0000 To: kde-commits Subject: [kdevelop/5.3] plugins/qmakemanager: Fix calling ref operator[] on a temporary Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=153566406803365 Git commit 5117a7990587ea24242eaf9245207804f0154472 by Friedrich W. H. Koss= ebau. Committed on 30/08/2018 at 20:58. Pushed by kossebau into branch '5.3'. Fix calling ref operator[] on a temporary M +1 -1 plugins/qmakemanager/qmakeprojectfile.cpp https://commits.kde.org/kdevelop/5117a7990587ea24242eaf9245207804f0154472 diff --git a/plugins/qmakemanager/qmakeprojectfile.cpp b/plugins/qmakemanag= er/qmakeprojectfile.cpp index db3830e68e..38e0a25c0c 100644 --- a/plugins/qmakemanager/qmakeprojectfile.cpp +++ b/plugins/qmakemanager/qmakeprojectfile.cpp @@ -407,7 +407,7 @@ QMakeCache* QMakeProjectFile::qmakeCache() const QList QMakeProjectFile::defines() const { QList d; - const auto& defs =3D variableMap()[QStringLiteral("DEFINES")]; + const auto& defs =3D variableMap().value(QStringLiteral("DEFINES")); for (const QString& def : defs) { int pos =3D def.indexOf(QLatin1Char('=3D')); if (pos >=3D 0) {