summaryrefslogtreecommitdiff
path: root/plugins/SmileyAdd/src/general.cpp
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2013-01-19 13:59:37 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2013-01-19 13:59:37 +0000
commit867acc8fe919830f4735ccfe8b9d99dc49319c90 (patch)
treea7020867cbe4054ca3296c1d54dfb7819875e438 /plugins/SmileyAdd/src/general.cpp
parentd6d3e7b429b634b0907940f67a3254e799df3c26 (diff)
- Another portion of _T replacement when it's not needed (from person)
git-svn-id: http://svn.miranda-ng.org/main/trunk@3169 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SmileyAdd/src/general.cpp')
-rw-r--r--plugins/SmileyAdd/src/general.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/SmileyAdd/src/general.cpp b/plugins/SmileyAdd/src/general.cpp
index 8a232a3e23..6810934d11 100644
--- a/plugins/SmileyAdd/src/general.cpp
+++ b/plugins/SmileyAdd/src/general.cpp
@@ -46,7 +46,7 @@ int CalculateTextHeight(HDC hdc, CHARFORMAT2* chf)
SelectObject(hcdc, hFont);
SIZE fontSize;
- GetTextExtentPoint32(hcdc, _T(")"), 1, &fontSize);
+ GetTextExtentPoint32(hcdc, L")", 1, &fontSize);
DeleteObject(hFont);
DeleteDC(hcdc);
@@ -78,7 +78,7 @@ HICON GetDefaultIcon(bool copy)
const TCHAR* GetImageExt(bkstring &fname)
{
- const TCHAR* ext = _T("");
+ const TCHAR* ext = L"";
int fileId = _topen(fname.c_str(), O_RDONLY | _O_BINARY);
if (fileId != -1)
@@ -89,13 +89,13 @@ const TCHAR* GetImageExt(bkstring &fname)
if (bytes > 4)
{
if ( *(unsigned short*)buf == 0xd8ff )
- ext = _T("jpg");
+ ext = L"jpg";
else if ( *(unsigned short*)buf == 0x4d42 )
- ext = _T("bmp");
+ ext = L"bmp";
else if ( *(unsigned*)buf == 0x474e5089 )
- ext = _T("png");
+ ext = L"png";
else if ( *(unsigned*)buf == 0x38464947 )
- ext = _T("gif");
+ ext = L"gif";
}
_close(fileId);
}
@@ -216,8 +216,8 @@ bool InitGdiPlus(void)
{
Gdiplus::GdiplusStartupInput gdiplusStartupInput;
- static const TCHAR errmsg[] = _T("GDI+ not installed.\n")
- _T("GDI+ can be downloaded here: http://www.microsoft.com/downloads");
+ static const TCHAR errmsg[] = L"GDI+ not installed.\n"
+ L"GDI+ can be downloaded here: http://www.microsoft.com/downloads";
#ifdef _MSC_VER
__try
@@ -273,7 +273,7 @@ bool IsSmileyProto(char* proto)
void ReportError(const TCHAR* errmsg)
{
- static const TCHAR title[] = _T("Miranda SmileyAdd");
+ static const TCHAR title[] = L"Miranda SmileyAdd";
/*
POPUPDATAW pd = {0};