Use more elegant singleton and fix spell bug.

This commit is contained in:
Mentalflow
2024-01-04 00:08:34 +08:00
parent bb19554215
commit 8778ca85a3
13 changed files with 19 additions and 31 deletions

View File

@ -34,7 +34,7 @@ T* Singleton<T>::getInstance() {
return instance;
}
#define SINGLETONG(Class) \
#define SINGLETON(Class) \
private: \
friend class Singleton<Class>; \
friend struct QScopedPointerDeleter<Class>; \