From b1c398b775f2ef2b923fc95f02de5ef684ee1160 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Thu, 4 Apr 2002 14:26:47 +0000 Subject: minor const fix --- src/Resource.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Resource.hh b/src/Resource.hh index 42156a8..be12285 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.3 2002/02/17 18:57:47 fluxgen Exp $ +// $Id: Resource.hh,v 1.4 2002/04/04 14:26:47 fluxgen Exp $ #ifndef RESOURCE_HH #define RESOURCE_HH @@ -36,8 +36,8 @@ public: virtual void setDefaultValue()=0; virtual std::string getString()=0; - inline std::string& getAltName() { return m_altname; } - inline std::string& getName() { return m_name; } + inline const std::string& getAltName() const { return m_altname; } + inline const std::string& getName() const { return m_name; } protected: Resource_base(const std::string &name, const std::string &altname): -- cgit v0.11.2