From cb4394773809100f06afed6e140411eb92851c49 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 23 Apr 2012 16:57:01 +0200 Subject: [PATCH] make magicValues() const the weird debugging feature is not used anyway Change-Id: I07f481a94f2b2ab2a5b61270f0e00183cefd4cd1 Reviewed-by: Joerg Bornemann --- qmake/project.cpp | 9 +++------ qmake/project.h | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/qmake/project.cpp b/qmake/project.cpp index 30b2cd2..45e2ee0 100644 --- a/qmake/project.cpp +++ b/qmake/project.cpp @@ -3758,17 +3758,14 @@ QMakeProject::doVariableReplaceExpand(const QString &str, QHash &place) +QStringList QMakeProject::magicValues(const QString &_var, const QHash &place) const { QString var = varMap(_var); if (var == QLatin1String("_LINE_")) { //parser line number - var = ".BUILTIN." + var; - place[var] = QStringList(QString::number(parser.line_no)); + return QStringList(QString::number(parser.line_no)); } else if(var == QLatin1String("_FILE_")) { //parser file - var = ".BUILTIN." + var; - place[var] = QStringList(parser.file); + return QStringList(parser.file); } - //qDebug("REPLACE [%s]->[%s]", qPrintable(var), qPrintable(place[var].join("::"))); return place[var]; } diff --git a/qmake/project.h b/qmake/project.h index 34ca8ec..e46c744 100644 --- a/qmake/project.h +++ b/qmake/project.h @@ -117,7 +117,7 @@ class QMakeProject void loadDefaults(); void setupProject(); QStringList &values(const QString &v, QHash &place); - QStringList &magicValues(const QString &v, QHash &place); + QStringList magicValues(const QString &v, const QHash &place) const; QStringList qmakeFeaturePaths(); public: -- 2.7.4