mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 13:56:10 +00:00
c0024ec6b1
Good coding practices applied only, architecture and logic were not altered.
17 lines
272 B
C++
17 lines
272 B
C++
#include "singleton.h"
|
|
#include <QQmlApplicationEngine>
|
|
|
|
namespace Global
|
|
{
|
|
Singleton* Singleton::instance()
|
|
{
|
|
static auto singleton = new Singleton();
|
|
return singleton;
|
|
}
|
|
|
|
QQmlApplicationEngine* Singleton::engine()
|
|
{
|
|
return &m_engine;
|
|
}
|
|
} // namespace Global
|