forked from qt-creator/qt-creator
work around msvc2010's apparent lack of appreciation for the meaning of "static"
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user