diff options
Diffstat (limited to 'protocols/CurrencyRates/src/CreateFilePath.cpp')
| -rw-r--r-- | protocols/CurrencyRates/src/CreateFilePath.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/protocols/CurrencyRates/src/CreateFilePath.cpp b/protocols/CurrencyRates/src/CreateFilePath.cpp index 04621eca64..3b2faadd1a 100644 --- a/protocols/CurrencyRates/src/CreateFilePath.cpp +++ b/protocols/CurrencyRates/src/CreateFilePath.cpp @@ -1,6 +1,6 @@ #include "StdAfx.h" -std::wstring CreateFilePath(const std::wstring &rsName) +CMStringW CreateFilePath(const CMStringW &rsName) { wchar_t szPath[_MAX_PATH]; ::GetModuleFileName(g_plugin.getInst(), szPath, _MAX_PATH); @@ -9,9 +9,7 @@ std::wstring CreateFilePath(const std::wstring &rsName) if (p) *p = 0; - std::wstring s(rsName); + CMStringW s(rsName); FixInvalidChars(s); - std::wostringstream o; - o << szPath << L"\\CurrencyRates\\" << s; - return o.str(); -}
\ No newline at end of file + return CMStringW(szPath) + L"\\CurrencyRates\\" + s; +} |
