all repos — fluxbox @ b1c398b775f2ef2b923fc95f02de5ef684ee1160

custom fork of the fluxbox windowmanager

minor const fix
fluxgen fluxgen
commit

b1c398b775f2ef2b923fc95f02de5ef684ee1160

parent

1a69dd6e0934207f344e9669f20371eebb8430a6

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

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

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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 @@ virtual void setFromString(char const *strval)=0;

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):