summaryrefslogtreecommitdiff
path: root/src/shared/proparser/profileparser.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-06-21 16:02:24 +0200
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-06-21 16:05:09 +0200
commitec249304e64eb14f9b24fc2692c03734213f48b9 (patch)
treec74e258f14480ad599434087218b9bb0ef3b5b28 /src/shared/proparser/profileparser.cpp
parent097e45d47c436fe0e3f9c69134695f8eb3a22fa2 (diff)
downloadqt-creator-ec249304e64eb14f9b24fc2692c03734213f48b9.tar.gz
work around msvc2010's apparent lack of appreciation for the meaning of "static"
Diffstat (limited to 'src/shared/proparser/profileparser.cpp')
-rw-r--r--src/shared/proparser/profileparser.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/proparser/profileparser.cpp b/src/shared/proparser/profileparser.cpp
index 125e09c673..4228ede391 100644
--- a/src/shared/proparser/profileparser.cpp
+++ b/src/shared/proparser/profileparser.cpp
@@ -88,6 +88,8 @@ void ProFileCache::discardFiles(const QString &prefix)
#define fL1S(s) QString::fromLatin1(s)
+namespace { // MSVC2010 doesn't seem to know the semantics of "static" ...
+
static struct {
QString strelse;
QString strfor;
@@ -95,6 +97,8 @@ static struct {
QString strdefineReplace;
} statics;
+}
+
void ProFileParser::initialize()
{
if (!statics.strelse.isNull())