aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2005-11-22 21:07:07 (GMT)
committerfluxgen <fluxgen>2005-11-22 21:07:07 (GMT)
commit8e404f10dd55efa8f80ce2a8a418d5719b70f441 (patch)
tree93644b46d1bab1fc2da5b2c81cbec0e54ede35a6 /src
parent8434c42aa8048d443306943ef48097dc8b31b79d (diff)
downloadfluxbox-8e404f10dd55efa8f80ce2a8a418d5719b70f441.zip
fluxbox-8e404f10dd55efa8f80ce2a8a418d5719b70f441.tar.bz2
const fix
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/Resource.hh7
1 files 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:
49 /// set default value 49 /// set default value
50 virtual void setDefaultValue() = 0; 50 virtual void setDefaultValue() = 0;
51 /// get string value 51 /// get string value
52 virtual std::string getString() = 0; 52 virtual std::string getString() const = 0;
53 /// get alternative name of this resource 53 /// get alternative name of this resource
54 inline const std::string& altName() const { return m_altname; } 54 inline const std::string& altName() const { return m_altname; }
55 /// get name of this resource 55 /// get name of this resource
@@ -99,7 +99,8 @@ public:
99 } 99 }
100 100
101 Resource_base *findResource(const std::string &resourcename); 101 Resource_base *findResource(const std::string &resourcename);
102 std::string resourceValue(const std::string &resourcename); 102 const Resource_base *findResource(const std::string &resourcename) const;
103 std::string resourceValue(const std::string &resourcename) const;
103 void setResourceValue(const std::string &resourcename, const std::string &value); 104 void setResourceValue(const std::string &resourcename, const std::string &value);
104 105
105 // this marks the database as "in use" and will avoid reloading 106 // this marks the database as "in use" and will avoid reloading
@@ -164,7 +165,7 @@ public:
164 inline Resource<T>& operator = (const T& newvalue) { m_value = newvalue; return *this;} 165 inline Resource<T>& operator = (const T& newvalue) { m_value = newvalue; return *this;}
165 /// specialized, must be implemented 166 /// specialized, must be implemented
166 /// @return string value of resource 167 /// @return string value of resource
167 std::string getString(); 168 std::string getString() const;
168 169
169 inline T& operator*() { return m_value; } 170 inline T& operator*() { return m_value; }
170 inline const T& operator*() const { return m_value; } 171 inline const T& operator*() const { return m_value; }