diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-01-19 17:02:36 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-01-19 17:02:36 +0000 |
commit | b4b33384b4bce30863d9d01aa6e0b60f588d281d (patch) | |
tree | e1732ca9a36ef790b92d0a21bdf4c919116bc117 /plugins/SmileyAdd/src/general.cpp | |
parent | 757be86f9884f7f6e35ebfcd2f1e6be163348eef (diff) |
- Another portion of _T replacement and fixes of previous commits (patch from person)
git-svn-id: http://svn.miranda-ng.org/main/trunk@3173 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SmileyAdd/src/general.cpp')
-rw-r--r-- | plugins/SmileyAdd/src/general.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/SmileyAdd/src/general.cpp b/plugins/SmileyAdd/src/general.cpp index 6810934d11..8b0b306998 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, L")", 1, &fontSize);
+ GetTextExtentPoint32(hcdc, _T(")"), 1, &fontSize);
DeleteObject(hFont);
DeleteDC(hcdc);
@@ -78,7 +78,7 @@ HICON GetDefaultIcon(bool copy) const TCHAR* GetImageExt(bkstring &fname)
{
- const TCHAR* ext = L"";
+ const TCHAR* ext = _T("");
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 = L"jpg";
+ ext = _T("jpg");
else if ( *(unsigned short*)buf == 0x4d42 )
- ext = L"bmp";
+ ext = _T("bmp");
else if ( *(unsigned*)buf == 0x474e5089 )
- ext = L"png";
+ ext = _T("png");
else if ( *(unsigned*)buf == 0x38464947 )
- ext = L"gif";
+ ext = _T("gif");
}
_close(fileId);
}
@@ -216,8 +216,8 @@ bool InitGdiPlus(void) {
Gdiplus::GdiplusStartupInput gdiplusStartupInput;
- static const TCHAR errmsg[] = L"GDI+ not installed.\n"
- L"GDI+ can be downloaded here: http://www.microsoft.com/downloads";
+ static const TCHAR errmsg[] = _T("GDI+ not installed.\n")
+ _T("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[] = L"Miranda SmileyAdd";
+ static const TCHAR title[] = _T("Miranda SmileyAdd");
/*
POPUPDATAW pd = {0};
|