Fix singleton access conditions

This commit is contained in:
Alex Spataru 2025-01-11 16:45:29 -05:00
parent e0efc61115
commit 55e006bdf1
2 changed files with 4 additions and 5 deletions

View File

@ -50,13 +50,12 @@ signals:
private:
explicit CommonFonts();
public:
CommonFonts(CommonFonts &&) = delete;
CommonFonts(const CommonFonts &) = delete;
CommonFonts &operator=(CommonFonts &&) = delete;
CommonFonts &operator=(const CommonFonts &) = delete;
public:
static CommonFonts &instance();
[[nodiscard]] const QFont &uiFont() const;

View File

@ -114,14 +114,14 @@ signals:
private:
explicit ThemeManager();
public:
static ThemeManager &instance();
ThemeManager(ThemeManager &&) = delete;
ThemeManager(const ThemeManager &) = delete;
ThemeManager &operator=(ThemeManager &&) = delete;
ThemeManager &operator=(const ThemeManager &) = delete;
public:
static ThemeManager &instance();
[[nodiscard]] int theme() const;
[[nodiscard]] const QString &themeName() const;
[[nodiscard]] const QJsonObject &colors() const;