From 8ae3679aa1339ce9abee53adb69902bd6b7513dc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 25 Jul 2016 10:31:04 +0000 Subject: hello, Unix. phase 1: removing _T() git-svn-id: http://svn.miranda-ng.org/main/trunk@17127 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- utils/std_string_utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils/std_string_utils.cpp') 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; -- cgit v1.2.3