diff options
Diffstat (limited to 'src/qdoc/singleton.h')
-rw-r--r-- | src/qdoc/singleton.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qdoc/singleton.h b/src/qdoc/singleton.h index c81cfc00b..ba6757652 100644 --- a/src/qdoc/singleton.h +++ b/src/qdoc/singleton.h @@ -44,8 +44,8 @@ public: Singleton &operator=(const Singleton &) = delete; static T &instance() { - static T instance; - return instance; + static T s_instance {}; + return s_instance; } protected: |