Optimized access to QVector.
--HG-- branch : develop
This commit is contained in:
parent
95ef34bf72
commit
4a0e2dee00
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user