forked from mirror/openmw-tes3mp
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
|
///< 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;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue