summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;