diff options
-rw-r--r-- | core/settings/qPrefAnimations.h | 4 | ||||
-rw-r--r-- | core/settings/qPrefDiveComputer.h | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/core/settings/qPrefAnimations.h b/core/settings/qPrefAnimations.h index 5b0fcaea4..63aa57c24 100644 --- a/core/settings/qPrefAnimations.h +++ b/core/settings/qPrefAnimations.h @@ -15,8 +15,8 @@ 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 int animation_speed() { return prefs.animation_speed; }; diff --git a/core/settings/qPrefDiveComputer.h b/core/settings/qPrefDiveComputer.h index 8a80ee3ca..c270c8155 100644 --- a/core/settings/qPrefDiveComputer.h +++ b/core/settings/qPrefDiveComputer.h @@ -23,11 +23,11 @@ public: void inline sync() {loadSync(true); } public: - static inline const QString& device() {return prefs.dive_computer.device; }; - static inline const QString& device_name() {return prefs.dive_computer.device_name; }; + static inline QString device() {return prefs.dive_computer.device; }; + static inline QString device_name() {return prefs.dive_computer.device_name; }; static inline int download_mode() {return prefs.dive_computer.download_mode; }; - static inline const QString& product() {return prefs.dive_computer.product; }; - static inline const QString& vendor() {return prefs.dive_computer.vendor; }; + static inline QString product() {return prefs.dive_computer.product; }; + static inline QString vendor() {return prefs.dive_computer.vendor; }; public slots: void set_device(const QString& device); |