Commit 9fb609b9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

add singleton

parent a747b71f
......@@ -16,3 +16,9 @@ RemoteContentManager::~RemoteContentManager()
{
}
RemoteContentManager *RemoteContentManager::self()
{
static RemoteContentManager s_self;
return &s_self;
}
......@@ -17,6 +17,7 @@ class MESSAGEVIEWER_TESTS_EXPORT RemoteContentManager : public QObject
public:
explicit RemoteContentManager(QObject *parent = nullptr);
~RemoteContentManager() override;
static RemoteContentManager *self();
};
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment