diff options
-rw-r--r-- | core/settings/qPrefDisplay.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/settings/qPrefDisplay.h b/core/settings/qPrefDisplay.h index 2d41c4e0d..57cf15ba0 100644 --- a/core/settings/qPrefDisplay.h +++ b/core/settings/qPrefDisplay.h @@ -19,15 +19,15 @@ public: // Load/Sync local settings (disk) and struct preference void loadSync(bool doSync); - void load() { loadSync(false); } - void sync() { loadSync(true); } + void inline load() { loadSync(false); } + void inline sync() { loadSync(true); } public: - static inline const QString divelist_font() {return QString(prefs.divelist_font); }; + static inline QString divelist_font() {return prefs.divelist_font; }; static inline double font_size() {return prefs.font_size; }; static inline bool display_invalid_dives() {return prefs.display_invalid_dives; }; static inline bool show_developer() {return prefs.show_developer; }; - static inline const QString theme() {return QString(prefs.theme); }; + static inline QString theme() {return prefs.theme; }; public slots: void set_divelist_font(const QString& value); |