clang-tidy
This commit is contained in:
@@ -14,16 +14,16 @@
|
||||
#include "texture.h" // Para Texture
|
||||
|
||||
// Singleton
|
||||
Notifier *Notifier::instance_ = nullptr;
|
||||
Notifier *Notifier::instance = nullptr;
|
||||
|
||||
// Inicializa la instancia única del singleton
|
||||
void Notifier::init(const std::string &icon_file, std::shared_ptr<Text> text) { Notifier::instance_ = new Notifier(icon_file, text); }
|
||||
void Notifier::init(const std::string &icon_file, std::shared_ptr<Text> text) { Notifier::instance = new Notifier(icon_file, text); }
|
||||
|
||||
// Libera la instancia
|
||||
void Notifier::destroy() { delete Notifier::instance_; }
|
||||
void Notifier::destroy() { delete Notifier::instance; }
|
||||
|
||||
// Obtiene la instancia
|
||||
Notifier *Notifier::get() { return Notifier::instance_; }
|
||||
Notifier *Notifier::get() { return Notifier::instance; }
|
||||
|
||||
// Constructor
|
||||
Notifier::Notifier(std::string icon_file, std::shared_ptr<Text> text)
|
||||
|
||||
Reference in New Issue
Block a user