summaryrefslogtreecommitdiff
path: root/utils/utf8_helpers.h
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/utf8_helpers.h
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/utf8_helpers.h')
-rw-r--r--utils/utf8_helpers.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/utils/utf8_helpers.h b/utils/utf8_helpers.h
index 25e243c203..4928f04557 100644
--- a/utils/utf8_helpers.h
+++ b/utils/utf8_helpers.h
@@ -33,11 +33,11 @@ public:
{
int size = MultiByteToWideChar(CP_ACP, 0, str, -1, NULL, 0);
if (size <= 0)
- throw _T("Could not convert string to WCHAR");
+ throw L"Could not convert string to WCHAR";
WCHAR *tmp = (WCHAR *) mir_alloc(size * sizeof(WCHAR));
if (tmp == NULL)
- throw _T("mir_alloc returned NULL");
+ throw L"mir_alloc returned NULL";
MultiByteToWideChar(CP_ACP, 0, str, -1, tmp, size);
@@ -88,11 +88,11 @@ private:
{
int size = WideCharToMultiByte(CP_UTF8, 0, str, -1, NULL, 0, NULL, NULL);
if (size <= 0)
- throw _T("Could not convert string to UTF8");
+ throw L"Could not convert string to UTF8";
utf8 = (char *) mir_alloc(size);
if (utf8 == NULL)
- throw _T("mir_alloc returned NULL");
+ throw L"mir_alloc returned NULL";
WideCharToMultiByte(CP_UTF8, 0, str, -1, utf8, size, NULL, NULL);
}
@@ -110,11 +110,11 @@ public:
int size = MultiByteToWideChar(CP_UTF8, 0, str, -1, NULL, 0);
if (size <= 0)
- throw _T("Could not convert string to WCHAR");
+ throw L"Could not convert string to WCHAR";
WCHAR *tmp = (WCHAR *) mir_alloc(size * sizeof(WCHAR));
if (tmp == NULL)
- throw _T("mir_alloc returned NULL");
+ throw L"mir_alloc returned NULL";
MultiByteToWideChar(CP_UTF8, 0, str, -1, tmp, size);
@@ -128,14 +128,14 @@ public:
if (size <= 0)
{
mir_free(tmp);
- throw _T("Could not convert string to ACP");
+ throw L"Could not convert string to ACP";
}
tchar = (TCHAR *) mir_alloc(size * sizeof(char));
if (tchar == NULL)
{
mir_free(tmp);
- throw _T("mir_alloc returned NULL");
+ throw L"mir_alloc returned NULL";
}
WideCharToMultiByte(CP_ACP, 0, tmp, -1, tchar, size, NULL, NULL);