diff options
author | Erik Verbruggen <[email protected]> | 2012-11-28 09:52:19 +0100 |
---|---|---|
committer | Erik Verbruggen <[email protected]> | 2012-12-04 08:33:33 +0100 |
commit | cfc1069c78bf727631b1565504b26d3d839ed1b9 (patch) | |
tree | 51152abb6805beab067cf7ca5994d4f04970893e /src/libs/cplusplus/pp-engine.cpp | |
parent | d37ee4d1ab30ce10e9f1bcc0e0a227bdfb2294c4 (diff) |
C++: Remove hard-coded configuration file name.
Change-Id: Ibe4cc69eafd14dab7707862b1068ce1e21b1d8e0
Reviewed-by: Nikolai Kosjar <[email protected]>
Diffstat (limited to 'src/libs/cplusplus/pp-engine.cpp')
-rw-r--r-- | src/libs/cplusplus/pp-engine.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libs/cplusplus/pp-engine.cpp b/src/libs/cplusplus/pp-engine.cpp index 3564cc11c45..22f30d08e6d 100644 --- a/src/libs/cplusplus/pp-engine.cpp +++ b/src/libs/cplusplus/pp-engine.cpp @@ -589,6 +589,8 @@ void Preprocessor::State::popTokenBuffer() --m_tokenBufferDepth; } +const QString Preprocessor::configurationFileName = QLatin1String("<configuration>"); + Preprocessor::Preprocessor(Client *client, Environment *env) : m_client(client) , m_env(env) @@ -1751,7 +1753,7 @@ void Preprocessor::handleIfDefDirective(bool checkUndefined, PPToken *tk) // the macro is a feature constraint(e.g. QT_NO_XXX) if (checkUndefined && macroName.startsWith("QT_NO_")) { - if (macro->fileName() == QLatin1String("<configuration>")) { + if (macro->fileName() == configurationFileName) { // and it' defined in a pro file (e.g. DEFINES += QT_NO_QOBJECT) value = false; // take the branch |