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/Log.cpp | |
parent | 676ff2e0bd23d7fe6b958ab3253d2dc1ccbe5eef (diff) |
CurrencyRates: old unused junk removed + code cleaning
Diffstat (limited to 'protocols/CurrencyRates/src/Log.cpp')
-rw-r--r-- | protocols/CurrencyRates/src/Log.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/CurrencyRates/src/Log.cpp b/protocols/CurrencyRates/src/Log.cpp index 7930ac5f4f..e0a4141a49 100644 --- a/protocols/CurrencyRates/src/Log.cpp +++ b/protocols/CurrencyRates/src/Log.cpp @@ -4,7 +4,7 @@ namespace { mir_cs g_Mutex; - tstring get_log_file_name() + std::wstring get_log_file_name() { return CreateFilePath(L"CurrencyRates.log"); } @@ -18,10 +18,10 @@ namespace #endif } - void do_log(const tstring& rsFileName, const tstring& rsMsg) + void do_log(const std::wstring& rsFileName, const std::wstring& rsMsg) { mir_cslock lck(g_Mutex); - tofstream file(rsFileName.c_str(), std::ios::ate | std::ios::app); + std::wofstream file(rsFileName.c_str(), std::ios::ate | std::ios::app); if (file.good()) { wchar_t szTime[20]; @@ -31,11 +31,11 @@ namespace } } -void LogIt(const tstring& rsMsg) +void LogIt(const std::wstring& rsMsg) { if (is_log_enabled()) { - tstring sFileName = get_log_file_name(); + std::wstring sFileName = get_log_file_name(); do_log(sFileName, rsMsg); } } |