summaryrefslogtreecommitdiff
path: root/utils/std_string_utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/std_string_utils.cpp')
-rw-r--r--utils/std_string_utils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/std_string_utils.cpp b/utils/std_string_utils.cpp
index be23aaeeeb..5991106b45 100644
--- a/utils/std_string_utils.cpp
+++ b/utils/std_string_utils.cpp
@@ -381,17 +381,17 @@ std::string utils::text::source_get_form_data(std::string* data, boolean hiddenO
std::tstring utils::text::prepare_name(const std::tstring &name, bool withSurnameLetter)
{
- std::tstring::size_type pos = name.find(_T(" "));
+ std::tstring::size_type pos = name.find(L" ");
if (pos == std::tstring::npos)
return name;
std::tstring result = name.substr(0, pos);
if (withSurnameLetter) {
- pos = name.rfind(_T(" ")) + 1; // we're sure there is some space in name so we can do +1 safely
+ pos = name.rfind(L" ") + 1; // we're sure there is some space in name so we can do +1 safely
if (pos < name.length())
- result += _T(" ") + name.substr(pos, 1) + std::tstring(_T("."));
+ result += L" " + name.substr(pos, 1) + std::tstring(L".");
}
return result;