Skip to content
Snippets Groups Projects
Commit ec249304 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

work around msvc2010's apparent lack of appreciation for the meaning of "static"

parent 097e45d4
No related branches found
No related tags found
No related merge requests found
...@@ -88,6 +88,8 @@ void ProFileCache::discardFiles(const QString &prefix) ...@@ -88,6 +88,8 @@ void ProFileCache::discardFiles(const QString &prefix)
#define fL1S(s) QString::fromLatin1(s) #define fL1S(s) QString::fromLatin1(s)
namespace { // MSVC2010 doesn't seem to know the semantics of "static" ...
static struct { static struct {
QString strelse; QString strelse;
QString strfor; QString strfor;
...@@ -95,6 +97,8 @@ static struct { ...@@ -95,6 +97,8 @@ static struct {
QString strdefineReplace; QString strdefineReplace;
} statics; } statics;
}
void ProFileParser::initialize() void ProFileParser::initialize()
{ {
if (!statics.strelse.isNull()) if (!statics.strelse.isNull())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment