mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-25 07:44:08 +00:00
Fix variable naming styleguide
This commit is contained in:
parent
0ab3090385
commit
60eede6a1d
@ -90,12 +90,12 @@ namespace Interpreter
|
||||
mStack.pop_back();
|
||||
}
|
||||
|
||||
Data& Runtime::operator[](int Index)
|
||||
Data& Runtime::operator[](int index)
|
||||
{
|
||||
if (Index < 0 || Index >= static_cast<int>(mStack.size()))
|
||||
if (index < 0 || index >= static_cast<int>(mStack.size()))
|
||||
throw std::runtime_error("stack index out of range");
|
||||
|
||||
return mStack[mStack.size() - Index - 1];
|
||||
return mStack[mStack.size() - index - 1];
|
||||
}
|
||||
|
||||
Context& Runtime::getContext()
|
||||
|
@ -51,7 +51,7 @@ namespace Interpreter
|
||||
void pop();
|
||||
///< pop stack
|
||||
|
||||
Data& operator[](int Index);
|
||||
Data& operator[](int index);
|
||||
///< Access stack member, counted from the top.
|
||||
|
||||
Context& getContext();
|
||||
|
Loading…
x
Reference in New Issue
Block a user