all repos — fluxbox @ 8e404f10dd55efa8f80ce2a8a418d5719b70f441

custom fork of the fluxbox windowmanager

const fix
fluxgen fluxgen
commit

8e404f10dd55efa8f80ce2a8a418d5719b70f441

parent

8434c42aa8048d443306943ef48097dc8b31b79d

1 files changed, 4 insertions(+), 3 deletions(-)

jump to
M src/FbTk/Resource.hhsrc/FbTk/Resource.hh

@@ -49,7 +49,7 @@ virtual void setFromString(char const *strval) = 0;

/// 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 @@ m_resourcelist.remove(&r);

} 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 @@ void setFromString(const char *strval);

inline Resource<T>& 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; }