diff options
Diffstat (limited to 'src/common/singleton.h')
-rw-r--r-- | src/common/singleton.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/singleton.h b/src/common/singleton.h index 4df7878..f631ed4 100644 --- a/src/common/singleton.h +++ b/src/common/singleton.h @@ -29,26 +29,26 @@ template<typename T> class CSingleton public: static T& GetInstance() { - assert(mInstance != NULL); + assert(mInstance != nullptr); return *mInstance; } static T* GetInstancePointer() { - assert(mInstance != NULL); + assert(mInstance != nullptr); return mInstance; } static bool IsCreated() { - return mInstance != NULL; + return mInstance != nullptr; } CSingleton() { - assert(mInstance == NULL); + assert(mInstance == nullptr); mInstance = static_cast<T *>(this); } virtual ~CSingleton() { - mInstance = NULL; + mInstance = nullptr; } private: |