aboutsummaryrefslogtreecommitdiff
path: root/src/Resource.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-05-17 10:59:58 (GMT)
committerfluxgen <fluxgen>2002-05-17 10:59:58 (GMT)
commitbda94a6c1acea846e2269512fa601eceef80b737 (patch)
tree6b2f61056529cab08b6235b911567bec592c0174 /src/Resource.hh
parente296c91a188c9e66cb4fd13c3986fc17e7179db1 (diff)
downloadfluxbox-bda94a6c1acea846e2269512fa601eceef80b737.zip
fluxbox-bda94a6c1acea846e2269512fa601eceef80b737.tar.bz2
const-correct on Resource class
Diffstat (limited to 'src/Resource.hh')
-rw-r--r--src/Resource.hh4
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; }
78private: 80private:
79 T m_value, m_defaultval; 81 T m_value, m_defaultval;
80 ResourceManager &m_rm; 82 ResourceManager &m_rm;