aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/DefaultValue.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/DefaultValue.hh')
-rw-r--r--src/FbTk/DefaultValue.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/DefaultValue.hh b/src/FbTk/DefaultValue.hh
index 9f52212..4e7eb49 100644
--- a/src/FbTk/DefaultValue.hh
+++ b/src/FbTk/DefaultValue.hh
@@ -34,7 +34,7 @@ public:
34 inline const T &get() const { return m_use_default ? m_default : m_actual; } 34 inline const T &get() const { return m_use_default ? m_default : m_actual; }
35 inline void set(const T &val) { m_use_default = false; m_actual = val; } 35 inline void set(const T &val) { m_use_default = false; m_actual = val; }
36 inline void restoreDefault() { m_use_default = true; } 36 inline void restoreDefault() { m_use_default = true; }
37 inline void isDefault() const { return m_use_default; } 37 inline bool isDefault() const { return m_use_default; }
38 38
39 inline DefaultValue<T> &operator =(const T &val) { 39 inline DefaultValue<T> &operator =(const T &val) {
40 set(val); return *this; 40 set(val); return *this;
@@ -62,7 +62,7 @@ public:
62 } 62 }
63 inline void set(const T &val) { m_use_default = false; m_actual = val; } 63 inline void set(const T &val) { m_use_default = false; m_actual = val; }
64 inline void restoreDefault() { m_use_default = true; } 64 inline void restoreDefault() { m_use_default = true; }
65 inline void isDefault() const { return m_use_default; } 65 inline bool isDefault() const { return m_use_default; }
66 66
67 inline DefaultAccessor<T, Receiver> &operator =(const T &val) { 67 inline DefaultAccessor<T, Receiver> &operator =(const T &val) {
68 set(val); return *this; 68 set(val); return *this;