Code tweaks and cosmetics

This commit is contained in:
spx
2012-08-01 14:47:10 -07:00
parent 06f625c91c
commit 66c52d6d80
2 changed files with 42 additions and 50 deletions

View File

@ -292,8 +292,6 @@ void CMeter::ReadOptions(CConfigParser& parser, const WCHAR* section)
}
bool oldWDefined = m_WDefined;
bool oldHDefined = m_HDefined;
m_W = parser.ReadInt(section, L"W", m_W);
m_WDefined = parser.GetLastValueDefined();
if (!m_WDefined && oldWDefined)
@ -302,6 +300,7 @@ void CMeter::ReadOptions(CConfigParser& parser, const WCHAR* section)
parser.SetValue(section, L"W", L"0");
}
bool oldHDefined = m_HDefined;
m_H = parser.ReadInt(section, L"H", m_H);
m_HDefined = parser.GetLastValueDefined();
if (!m_HDefined && oldHDefined)