From 8e404f10dd55efa8f80ce2a8a418d5719b70f441 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 22 Nov 2005 21:07:07 +0000 Subject: const fix --- src/FbTk/Resource.hh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/FbTk/Resource.hh b/src/FbTk/Resource.hh index c27d9e4..c48b6ca 100644 --- a/src/FbTk/Resource.hh +++ b/src/FbTk/Resource.hh @@ -49,7 +49,7 @@ public: /// set default value virtual void setDefaultValue() = 0; /// get string value - virtual std::string getString() = 0; + virtual std::string getString() const = 0; /// get alternative name of this resource inline const std::string& altName() const { return m_altname; } /// get name of this resource @@ -99,7 +99,8 @@ public: } Resource_base *findResource(const std::string &resourcename); - std::string resourceValue(const std::string &resourcename); + const Resource_base *findResource(const std::string &resourcename) const; + std::string resourceValue(const std::string &resourcename) const; void setResourceValue(const std::string &resourcename, const std::string &value); // this marks the database as "in use" and will avoid reloading @@ -164,7 +165,7 @@ public: inline Resource& operator = (const T& newvalue) { m_value = newvalue; return *this;} /// specialized, must be implemented /// @return string value of resource - std::string getString(); + std::string getString() const; inline T& operator*() { return m_value; } inline const T& operator*() const { return m_value; } -- cgit v0.11.2