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:
static DoricSingleton *getInstance() {
static DoricSingleton locla_s;
return &locla_s;
static DoricSingleton instance;
return &instance;
}
};

View File

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