added missing const to ScriptManager::getLocals

deque
Marc Zinnschlag 11 years ago
parent 2e355df8b3
commit 9f69db0d69

@ -46,7 +46,7 @@ namespace MWBase
///< Compile all scripts
/// \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.
virtual MWScript::GlobalScripts& getGlobalScripts() = 0;

@ -156,7 +156,7 @@ namespace MWScript
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);

@ -67,7 +67,7 @@ namespace MWScript
///< Compile all scripts
/// \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.
virtual GlobalScripts& getGlobalScripts();

Loading…
Cancel
Save