mirror of
				https://github.com/chibicitiberiu/rainmeter-studio.git
				synced 2024-02-24 04:33:31 +00:00 
			
		
		
		
	Code cleanup & cosmetic.
This commit is contained in:
		| @@ -139,11 +139,11 @@ bool CMeasureTime::Update() | ||||
|  | ||||
| 		FileTimeToSystemTime(&ftToday, &sysToday); | ||||
|  | ||||
| 		if (wcsicmp(L"locale-time", m_Format.c_str()) == 0) | ||||
| 		if (_wcsicmp(L"locale-time", m_Format.c_str()) == 0) | ||||
| 		{ | ||||
| 			GetTimeFormat(LOCALE_USER_DEFAULT, 0, &sysToday, NULL, tmpSz, MAX_LINE_LENGTH); | ||||
| 		} | ||||
| 		else if (wcsicmp(L"locale-date", m_Format.c_str()) == 0) | ||||
| 		else if (_wcsicmp(L"locale-date", m_Format.c_str()) == 0) | ||||
| 		{ | ||||
| 			GetDateFormat(LOCALE_USER_DEFAULT, 0, &sysToday, NULL, tmpSz, MAX_LINE_LENGTH); | ||||
| 		} | ||||
| @@ -203,11 +203,11 @@ const WCHAR* CMeasureTime::GetStringValue(bool autoScale, double scale, int deci | ||||
| 	// Create the string | ||||
| 	if (m_Format.size() > 0) | ||||
| 	{ | ||||
| 		if (wcsicmp(L"locale-time", m_Format.c_str()) == 0) | ||||
| 		if (_wcsicmp(L"locale-time", m_Format.c_str()) == 0) | ||||
| 		{ | ||||
| 			GetTimeFormat(LOCALE_USER_DEFAULT, 0, &sysToday, NULL, tmpSz, MAX_LINE_LENGTH); | ||||
| 		} | ||||
| 		else if (wcsicmp(L"locale-date", m_Format.c_str()) == 0) | ||||
| 		else if (_wcsicmp(L"locale-date", m_Format.c_str()) == 0) | ||||
| 		{ | ||||
| 			GetDateFormat(LOCALE_USER_DEFAULT, 0, &sysToday, NULL, tmpSz, MAX_LINE_LENGTH); | ||||
| 		} | ||||
| @@ -244,7 +244,7 @@ void CMeasureTime::ReadConfig(CConfigParser& parser, const WCHAR* section) | ||||
| 	GetLocalTime(&sysLocalTime); | ||||
| 	GetSystemTime(&sysUTCTime); | ||||
|  | ||||
| 	if (wcsicmp(L"local", timezone.c_str()) == 0) | ||||
| 	if (_wcsicmp(L"local", timezone.c_str()) == 0) | ||||
| 	{ | ||||
| 		FILETIME ftLocalTime, ftUTCTime; | ||||
| 		SystemTimeToFileTime(&sysLocalTime, &ftLocalTime); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 spx
					spx