Patryk Osmaczko c0024ec6b1 refactor(@desktop/cpp): improve cpp code
Good coding practices applied only,
architecture and logic were not altered.
2022-03-01 16:05:21 +01:00

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