correction of the singleton system
This commit is contained in:
parent
ff3e92fd01
commit
a4c8558ab7
@ -31,11 +31,11 @@ namespace etk {
|
||||
{
|
||||
protected:
|
||||
// Constructeur/destructeur
|
||||
Singleton() { }
|
||||
~Singleton() { /*std::cout << "destroying singleton." << std::endl;*/ }
|
||||
Singleton(void) { }
|
||||
~Singleton(void) { /*std::cout << "destroying singleton." << std::endl;*/ }
|
||||
public:
|
||||
// Interface publique
|
||||
static T *Get()
|
||||
static T *Get(void)
|
||||
{
|
||||
if (NULL == _singleton)
|
||||
{
|
||||
@ -43,7 +43,7 @@ namespace etk {
|
||||
}
|
||||
return (static_cast<T*> (_singleton));
|
||||
}
|
||||
static T *getInstance()
|
||||
static T *getInstance(void)
|
||||
{
|
||||
if (NULL == _singleton)
|
||||
{
|
||||
@ -51,7 +51,7 @@ namespace etk {
|
||||
}
|
||||
return (static_cast<T*> (_singleton));
|
||||
}
|
||||
static void Kill()
|
||||
static void Kill(void)
|
||||
{
|
||||
if (NULL != _singleton)
|
||||
{
|
||||
|
@ -96,9 +96,9 @@ static void* BaseAppEntry(void* param)
|
||||
|
||||
EWOL_INFO("v" EWOL_VERSION_TAG_NAME);
|
||||
EWOL_INFO("Build Date: " VERSION_BUILD_TIME);
|
||||
ewol::widgetManager::Init();
|
||||
ewol::texture::Init();
|
||||
ewol::theme::Init();
|
||||
ewol::widgetManager::Init();
|
||||
ewol::InitFont();
|
||||
APP_Init();
|
||||
int32_t countNbEvent = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user