diff options
author | George Hazan <ghazan@miranda.im> | 2021-05-20 11:40:41 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-05-20 11:40:41 +0300 |
commit | 0d08ce17f07300d4851e24a7123415015849605c (patch) | |
tree | 032069532d2ee673456f339032a4e56cca29f1b8 /protocols/CurrencyRates/src/Locale.cpp | |
parent | 676ff2e0bd23d7fe6b958ab3253d2dc1ccbe5eef (diff) |
CurrencyRates: old unused junk removed + code cleaning
Diffstat (limited to 'protocols/CurrencyRates/src/Locale.cpp')
-rw-r--r-- | protocols/CurrencyRates/src/Locale.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/CurrencyRates/src/Locale.cpp b/protocols/CurrencyRates/src/Locale.cpp index 501015eb21..0e112749c4 100644 --- a/protocols/CurrencyRates/src/Locale.cpp +++ b/protocols/CurrencyRates/src/Locale.cpp @@ -5,9 +5,9 @@ const std::locale GetSystemLocale() return std::locale(""); } -tstring get_int_registry_value(LPCTSTR pszValueName) +std::wstring get_int_registry_value(LPCTSTR pszValueName) { - tstring sResult; + std::wstring sResult; HKEY hKey = nullptr; LONG lResult = ::RegOpenKeyEx(HKEY_CURRENT_USER, L"Control Panel\\International", 0, KEY_QUERY_VALUE, &hKey); @@ -31,7 +31,7 @@ tstring get_int_registry_value(LPCTSTR pszValueName) return sResult; } -LPCTSTR date_win_2_boost(const tstring& sFrmt) +LPCTSTR date_win_2_boost(const std::wstring& sFrmt) { if (sFrmt == L"dd/MM/yy") return L"%d/%m/%y"; @@ -40,7 +40,7 @@ LPCTSTR date_win_2_boost(const tstring& sFrmt) return L"%d.%m.%y"; } -LPCTSTR time_win_2_boost(const tstring& sFrmt) +LPCTSTR time_win_2_boost(const std::wstring& sFrmt) { if (sFrmt == L"H:mm" || sFrmt == L"HH:mm") return L"%H:%M"; |