Optimized access to QVector.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-10-28 16:26:58 +02:00
parent 95ef34bf72
commit 4a0e2dee00

View File

@ -488,7 +488,7 @@ void QmuParserByteCode::Finalize()
int idx; int idx;
for (int i=0; i<m_vRPN.size(); ++i) for (int i=0; i<m_vRPN.size(); ++i)
{ {
switch (m_vRPN[i].Cmd) switch (m_vRPN.at(i).Cmd)
{ {
case cmIF: case cmIF:
stIf.push(i); stIf.push(i);
@ -517,7 +517,7 @@ const SToken* QmuParserByteCode::GetBase() const
} }
else else
{ {
return &m_vRPN[0]; return &m_vRPN.at(0);
} }
} }