Fixed some Lua related issues.

Removed some internal functions from exposed functions for Lua.
Code cleanup and optimizing for VC2010.
This commit is contained in:
spx
2011-02-15 13:22:19 +00:00
parent b01465a20a
commit 1ba57f2adf
37 changed files with 754 additions and 1127 deletions

View File

@ -489,7 +489,7 @@ bool CMeterString::Update()
if (m_Measure) stringValues.push_back(m_Measure->GetStringValue(m_AutoScale, m_Scale, decimals, m_Percentual));
// Get the values for the other measures
for (size_t i = 0; i < m_Measures.size(); ++i)
for (size_t i = 0, isize = m_Measures.size(); i < isize; ++i)
{
stringValues.push_back(m_Measures[i]->GetStringValue(m_AutoScale, m_Scale, decimals, m_Percentual));
}
@ -498,7 +498,7 @@ bool CMeterString::Update()
m_String = m_Prefix;
if (m_Text.empty())
{
if (stringValues.size() > 0)
if (!stringValues.empty())
{
m_String += stringValues[0];
}