From bda94a6c1acea846e2269512fa601eceef80b737 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Fri, 17 May 2002 10:59:58 +0000 Subject: const-correct on Resource class --- src/Resource.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Resource.hh,v 1.4 2002/04/04 14:26:47 fluxgen Exp $ +// $Id: Resource.hh,v 1.5 2002/05/17 10:59:58 fluxgen Exp $ #ifndef RESOURCE_HH #define RESOURCE_HH @@ -74,7 +74,9 @@ public: std::string getString(); inline T& operator*(void) { return m_value; } + inline const T& operator*(void) const { return m_value; } inline T *operator->(void) { return &m_value; } + inline const T *operator->(void) const { return &m_value; } private: T m_value, m_defaultval; ResourceManager &m_rm; -- cgit v0.11.2