aboutsummaryrefslogtreecommitdiff
path: root/src/WindowCmd.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/WindowCmd.hh')
-rw-r--r--src/WindowCmd.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/WindowCmd.hh b/src/WindowCmd.hh
index d1754e9..a58eafc 100644
--- a/src/WindowCmd.hh
+++ b/src/WindowCmd.hh
@@ -74,11 +74,11 @@ public:
74 WindowAccessor(Getter g, Setter s, Def def): 74 WindowAccessor(Getter g, Setter s, Def def):
75 m_getter(g), m_setter(s), m_def(def) { } 75 m_getter(g), m_setter(s), m_def(def) { }
76 76
77 inline operator Ret() const { 77 operator Ret() const {
78 FluxboxWindow *fbwin = WindowCmd<void>::window(); 78 FluxboxWindow *fbwin = WindowCmd<void>::window();
79 return fbwin ? (fbwin->*m_getter)() : m_def; 79 return fbwin ? (fbwin->*m_getter)() : m_def;
80 } 80 }
81 inline FbTk::Accessor<Ret> &operator =(const Ret &val) { 81 FbTk::Accessor<Ret> &operator =(const Ret &val) {
82 FluxboxWindow *fbwin = WindowCmd<void>::window(); 82 FluxboxWindow *fbwin = WindowCmd<void>::window();
83 if (fbwin) 83 if (fbwin)
84 (fbwin->*m_setter)(val); 84 (fbwin->*m_setter)(val);
@@ -99,11 +99,11 @@ public:
99 ConstWindowAccessor(Getter g, Def def): 99 ConstWindowAccessor(Getter g, Def def):
100 m_getter(g), m_def(def) { } 100 m_getter(g), m_def(def) { }
101 101
102 inline operator Ret() const { 102 operator Ret() const {
103 FluxboxWindow *fbwin = WindowCmd<void>::window(); 103 FluxboxWindow *fbwin = WindowCmd<void>::window();
104 return fbwin ? (fbwin->*m_getter)() : m_def; 104 return fbwin ? (fbwin->*m_getter)() : m_def;
105 } 105 }
106 inline FbTk::Accessor<Ret> &operator =(const Ret &val) { return *this; } 106 FbTk::Accessor<Ret> &operator =(const Ret &val) { return *this; }
107 107
108private: 108private:
109 Getter m_getter; 109 Getter m_getter;