aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Accessor.hh
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2007-12-29 21:38:53 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2007-12-29 21:38:53 (GMT)
commite1f362ae764884a4cd1e1673292cb37d5a85f89c (patch)
tree137430b26aee6f3638f27281d3757c2c75ef4b20 /src/FbTk/Accessor.hh
parente90c3678d9e54bc9251619fdee2d7341f042167b (diff)
downloadfluxbox-e1f362ae764884a4cd1e1673292cb37d5a85f89c.zip
fluxbox-e1f362ae764884a4cd1e1673292cb37d5a85f89c.tar.bz2
'inline' in class declaration is implicitly inline
Diffstat (limited to 'src/FbTk/Accessor.hh')
-rw-r--r--src/FbTk/Accessor.hh12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/FbTk/Accessor.hh b/src/FbTk/Accessor.hh
index 88db1aa..9675404 100644
--- a/src/FbTk/Accessor.hh
+++ b/src/FbTk/Accessor.hh
@@ -37,8 +37,8 @@ template <typename T>
37class SimpleAccessor: public Accessor<T> { 37class SimpleAccessor: public Accessor<T> {
38public: 38public:
39 SimpleAccessor(T &val): m_val(val) { } 39 SimpleAccessor(T &val): m_val(val) { }
40 inline Accessor<T> &operator =(const T &val) { m_val = val; return *this; } 40 Accessor<T> &operator =(const T &val) { m_val = val; return *this; }
41 inline operator T() const { return m_val; } 41 operator T() const { return m_val; }
42 42
43private: 43private:
44 T &m_val; 44 T &m_val;
@@ -53,8 +53,8 @@ public:
53 ObjectAccessor(Receiver &r, Getter g, Setter s): 53 ObjectAccessor(Receiver &r, Getter g, Setter s):
54 m_receiver(r), m_getter(g), m_setter(s) { } 54 m_receiver(r), m_getter(g), m_setter(s) { }
55 55
56 inline operator T() const { return (m_receiver.*m_getter)(); } 56 operator T() const { return (m_receiver.*m_getter)(); }
57 inline Accessor<T> &operator =(const T &val) { 57 Accessor<T> &operator =(const T &val) {
58 (m_receiver.*m_setter)(val); return *this; 58 (m_receiver.*m_setter)(val); return *this;
59 } 59 }
60 60
@@ -72,8 +72,8 @@ public:
72 ConstObjectAccessor(const Receiver &r, Getter g): 72 ConstObjectAccessor(const Receiver &r, Getter g):
73 m_receiver(r), m_getter(g) { } 73 m_receiver(r), m_getter(g) { }
74 74
75 inline operator T() const { return (m_receiver.*m_getter)(); } 75 operator T() const { return (m_receiver.*m_getter)(); }
76 inline Accessor<T> &operator =(const T &val) { return *this; } 76 Accessor<T> &operator =(const T &val) { return *this; }
77 77
78private: 78private:
79 const Receiver &m_receiver; 79 const Receiver &m_receiver;