This commit is contained in:
王劲鹏 2021-02-04 17:04:22 +08:00 committed by osborn
parent be37a71699
commit 41640c1399
2 changed files with 5 additions and 5 deletions

View File

@ -12,8 +12,8 @@ private:
public: public:
static DoricSingleton *getInstance() { static DoricSingleton *getInstance() {
static DoricSingleton locla_s; static DoricSingleton instance;
return &locla_s; return &instance;
} }
}; };

View File

@ -1,10 +1,10 @@
#ifndef OBJECTFACTORY_H
#define OBJECTFACTORY_H
#include <QByteArray> #include <QByteArray>
#include <QHash> #include <QHash>
#include <QMetaObject> #include <QMetaObject>
#ifndef OBJECTFACTORY_H
#define OBJECTFACTORY_H
class DoricObjectFactory { class DoricObjectFactory {
public: public:
template <typename T> static void registerClass(QString name) { template <typename T> static void registerClass(QString name) {