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.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/FbTk/DefaultValue.hh b/src/FbTk/DefaultValue.hh
index 95b534a..ca20370 100644
--- a/src/FbTk/DefaultValue.hh
+++ b/src/FbTk/DefaultValue.hh
@@ -36,14 +36,14 @@ public:
36 DefaultValue(const Def def): 36 DefaultValue(const Def def):
37 m_default(def), m_actual(def), m_use_default(true) { } 37 m_default(def), m_actual(def), m_use_default(true) { }
38 38
39 inline void restoreDefault() { m_use_default = true; } 39 void restoreDefault() { m_use_default = true; }
40 inline bool isDefault() const { return m_use_default; } 40 bool isDefault() const { return m_use_default; }
41 41
42 inline DefaultValue<Ret, Def> &operator =(const Ret &val) { 42 DefaultValue<Ret, Def> &operator =(const Ret &val) {
43 m_use_default = false; m_actual = val; return *this; 43 m_use_default = false; m_actual = val; return *this;
44 } 44 }
45 45
46 inline operator Ret() const { return m_use_default ? m_default : m_actual; } 46 operator Ret() const { return m_use_default ? m_default : m_actual; }
47 47
48private: 48private:
49 const Def m_default; 49 const Def m_default;