X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FSettings.hh;h=6cd86291b64bb1be6ed959b7b4d61745495c08e6;hp=d31b57dcf763c2fe0d38b1f3f96cc1fa24583223;hb=4f62ce947db282f0bbf4d49b3aafb83d7cf51adc;hpb=a295f8def17036c8071b56e181364f99a377cae7 diff --git a/src/Moof/Settings.hh b/src/Moof/Settings.hh index d31b57d..6cd8629 100644 --- a/src/Moof/Settings.hh +++ b/src/Moof/Settings.hh @@ -72,18 +72,18 @@ public: void save() const; template - bool get(const std::string& key, T& value); + bool get(const std::string& key, T& value) const; private: - Script mScript; + mutable Script mScript; std::string mUserFile; }; template -bool Settings::get(const std::string& key, T& value) +bool Settings::get(const std::string& key, T& value) const { Script::Slot top = mScript[-1]; Script::Slot globals = mScript.getGlobalTable();