added missing const to ScriptManager::getLocals

This commit is contained in:
Marc Zinnschlag 2014-07-25 08:12:53 +02:00
parent 2e355df8b3
commit 9f69db0d69
3 changed files with 3 additions and 3 deletions

View file

@ -46,7 +46,7 @@ namespace MWBase
///< Compile all scripts ///< Compile all scripts
/// \return count, success /// \return count, success
virtual Compiler::Locals& getLocals (const std::string& name) = 0; virtual const Compiler::Locals& getLocals (const std::string& name) = 0;
///< Return locals for script \a name. ///< Return locals for script \a name.
virtual MWScript::GlobalScripts& getGlobalScripts() = 0; virtual MWScript::GlobalScripts& getGlobalScripts() = 0;

View file

@ -156,7 +156,7 @@ namespace MWScript
return std::make_pair (count, success); return std::make_pair (count, success);
} }
Compiler::Locals& ScriptManager::getLocals (const std::string& name) const Compiler::Locals& ScriptManager::getLocals (const std::string& name)
{ {
std::string name2 = Misc::StringUtils::lowerCase (name); std::string name2 = Misc::StringUtils::lowerCase (name);

View file

@ -67,7 +67,7 @@ namespace MWScript
///< Compile all scripts ///< Compile all scripts
/// \return count, success /// \return count, success
virtual Compiler::Locals& getLocals (const std::string& name); virtual const Compiler::Locals& getLocals (const std::string& name);
///< Return locals for script \a name. ///< Return locals for script \a name.
virtual GlobalScripts& getGlobalScripts(); virtual GlobalScripts& getGlobalScripts();