diff options
author | fluxgen <fluxgen> | 2002-05-17 10:59:58 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-05-17 10:59:58 (GMT) |
commit | bda94a6c1acea846e2269512fa601eceef80b737 (patch) | |
tree | 6b2f61056529cab08b6235b911567bec592c0174 | |
parent | e296c91a188c9e66cb4fd13c3986fc17e7179db1 (diff) | |
download | fluxbox_lack-bda94a6c1acea846e2269512fa601eceef80b737.zip fluxbox_lack-bda94a6c1acea846e2269512fa601eceef80b737.tar.bz2 |
const-correct on Resource class
-rw-r--r-- | src/Resource.hh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Resource.hh b/src/Resource.hh index be12285..10a77f7 100644 --- a/src/Resource.hh +++ b/src/Resource.hh | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: Resource.hh,v 1.4 2002/04/04 14:26:47 fluxgen Exp $ | 22 | // $Id: Resource.hh,v 1.5 2002/05/17 10:59:58 fluxgen Exp $ |
23 | 23 | ||
24 | #ifndef RESOURCE_HH | 24 | #ifndef RESOURCE_HH |
25 | #define RESOURCE_HH | 25 | #define RESOURCE_HH |
@@ -74,7 +74,9 @@ public: | |||
74 | 74 | ||
75 | std::string getString(); | 75 | std::string getString(); |
76 | inline T& operator*(void) { return m_value; } | 76 | inline T& operator*(void) { return m_value; } |
77 | inline const T& operator*(void) const { return m_value; } | ||
77 | inline T *operator->(void) { return &m_value; } | 78 | inline T *operator->(void) { return &m_value; } |
79 | inline const T *operator->(void) const { return &m_value; } | ||
78 | private: | 80 | private: |
79 | T m_value, m_defaultval; | 81 | T m_value, m_defaultval; |
80 | ResourceManager &m_rm; | 82 | ResourceManager &m_rm; |