diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2007-12-29 21:38:53 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2007-12-29 21:38:53 (GMT) |
commit | e1f362ae764884a4cd1e1673292cb37d5a85f89c (patch) | |
tree | 137430b26aee6f3638f27281d3757c2c75ef4b20 /src/FbTk/Accessor.hh | |
parent | e90c3678d9e54bc9251619fdee2d7341f042167b (diff) | |
download | fluxbox-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.hh | 12 |
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> | |||
37 | class SimpleAccessor: public Accessor<T> { | 37 | class SimpleAccessor: public Accessor<T> { |
38 | public: | 38 | public: |
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 | ||
43 | private: | 43 | private: |
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 | ||
78 | private: | 78 | private: |
79 | const Receiver &m_receiver; | 79 | const Receiver &m_receiver; |