summaryrefslogtreecommitdiff
path: root/utils/std_string_utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-07-25 10:31:04 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-07-25 10:31:04 +0000
commit8ae3679aa1339ce9abee53adb69902bd6b7513dc (patch)
tree94ef8927e12043ed6dcc15e1e640d68a8add520e /utils/std_string_utils.cpp
parent1e273e28d89b5838e3d0f0cafac9676577cb71ce (diff)
hello, Unix.
phase 1: removing _T() git-svn-id: http://svn.miranda-ng.org/main/trunk@17127 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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;