diff --git a/src/corelib/global/qcompilerdetection.h b/src/corelib/global/qcompilerdetection.h index 7498c778a80..0f9a821e401 100644 --- a/src/corelib/global/qcompilerdetection.h +++ b/src/corelib/global/qcompilerdetection.h @@ -1015,18 +1015,6 @@ # define Q_DECL_CONST_FUNCTION Q_DECL_PURE_FUNCTION #endif -/* - Workaround for static const members on MSVC++. -*/ - -#if defined(Q_CC_MSVC) -# define QT_STATIC_CONST static -# define QT_STATIC_CONST_IMPL -#else -# define QT_STATIC_CONST static const -# define QT_STATIC_CONST_IMPL const -#endif - /* Proper for-scoping in MIPSpro CC */ diff --git a/src/tools/qdoc/config.cpp b/src/tools/qdoc/config.cpp index 172ed8015d1..74a571fa3cb 100644 --- a/src/tools/qdoc/config.cpp +++ b/src/tools/qdoc/config.cpp @@ -242,7 +242,7 @@ QStringList MetaStack::getExpanded(const Location& location) return top().accum; } -QT_STATIC_CONST_IMPL QString Config::dot = QLatin1String("."); +const QString Config::dot = QLatin1String("."); bool Config::debug_ = false; bool Config::generateExamples = true; QString Config::overrideOutputDir; diff --git a/src/tools/qdoc/config.h b/src/tools/qdoc/config.h index 622573dac2b..5e21e069b50 100644 --- a/src/tools/qdoc/config.h +++ b/src/tools/qdoc/config.h @@ -141,7 +141,7 @@ public: static void pushWorkingDir(const QString& dir); static QString popWorkingDir(); - QT_STATIC_CONST QString dot; + static const QString dot; static bool generateExamples; static QString installDir; diff --git a/src/tools/qdoc/location.cpp b/src/tools/qdoc/location.cpp index cdecb596266..073b1cb1740 100644 --- a/src/tools/qdoc/location.cpp +++ b/src/tools/qdoc/location.cpp @@ -52,7 +52,7 @@ QT_BEGIN_NAMESPACE -QT_STATIC_CONST_IMPL Location Location::null; +const Location Location::null; int Location::tabSize; QString Location::programName; diff --git a/src/tools/qdoc/location.h b/src/tools/qdoc/location.h index 0c113bcbeb8..d5ea5a6af0a 100644 --- a/src/tools/qdoc/location.h +++ b/src/tools/qdoc/location.h @@ -90,7 +90,7 @@ public: void fatal(const QString& message, const QString& details = QString()) const; - QT_STATIC_CONST Location null; + static const Location null; static void initialize(const Config& config); static void terminate();