mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
- Switched from size()>0 to empty().
- Code cleanup.
This commit is contained in:
@ -113,7 +113,7 @@ bool CMeasureTime::Update()
|
||||
|
||||
m_Time.QuadPart += m_DeltaTime.QuadPart;
|
||||
|
||||
if (m_Format.size() > 0)
|
||||
if (!m_Format.empty())
|
||||
{
|
||||
// If there is some date format, parse the value from it instead
|
||||
WCHAR* tmpSz = new WCHAR[MAX_LINE_LENGTH];
|
||||
@ -195,7 +195,7 @@ const WCHAR* CMeasureTime::GetStringValue(AUTOSCALE autoScale, double scale, int
|
||||
today.tm_year = sysToday.wYear - 1900;
|
||||
|
||||
// Create the string
|
||||
if (m_Format.size() > 0)
|
||||
if (!m_Format.empty())
|
||||
{
|
||||
if (_wcsicmp(L"locale-time", m_Format.c_str()) == 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user