summaryrefslogtreecommitdiff
path: root/protocols/CurrencyRates/src/Log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/CurrencyRates/src/Log.cpp')
-rw-r--r--protocols/CurrencyRates/src/Log.cpp10
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);
}
}