Tweaks to reduce OnChangeAction overhead

This commit is contained in:
Birunthan Mohanathas
2013-04-10 18:59:41 +03:00
parent 507e0294fe
commit aa3c7eb8ce
20 changed files with 82 additions and 44 deletions

View File

@ -164,14 +164,9 @@ void CMeasureDiskSpace::UpdateValue()
** Returns the time as string.
**
*/
const WCHAR* CMeasureDiskSpace::GetStringValue(AUTOSCALE autoScale, double scale, int decimals, bool percentual)
const WCHAR* CMeasureDiskSpace::GetStringValue()
{
if (m_Type || m_Label)
{
return CheckSubstitute(m_StringValue.c_str());
}
return CMeasure::GetStringValue(autoScale, scale, decimals, percentual);
return (m_Type || m_Label) ? CheckSubstitute(m_StringValue.c_str()) : NULL;
}
/*