mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-20 22:23:52 +00:00
added missing const to ScriptManager::getLocals
This commit is contained in:
parent
2e355df8b3
commit
9f69db0d69
3 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue