clang-tidy

This commit is contained in:
2025-07-20 12:16:25 +02:00
parent a7ef29b750
commit bfda842d3c
43 changed files with 512 additions and 504 deletions

View File

@@ -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)