[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdevelop/5.3] plugins/qmakemanager: Fix calling ref operator[] on a temporary
From:       Friedrich W. H. Kossebau <null () kde ! org>
Date:       2018-08-30 21:20:57
Message-ID: E1fvUN7-00078y-Up () code ! kde ! org
[Download RAW message or body]

Git commit 5117a7990587ea24242eaf9245207804f0154472 by Friedrich W. H. Kossebau.
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/qmakemanager/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::DefinePair> QMakeProjectFile::defines() const
 {
     QList<DefinePair> d;
-    const auto& defs = variableMap()[QStringLiteral("DEFINES")];
+    const auto& defs = variableMap().value(QStringLiteral("DEFINES"));
     for (const QString& def : defs) {
         int pos = def.indexOf(QLatin1Char('='));
         if (pos >= 0) {

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic