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/options.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/options.cpp')
-rw-r--r-- | plugins/SmileyAdd/src/options.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/SmileyAdd/src/options.cpp b/plugins/SmileyAdd/src/options.cpp index 2ca4e7ed29..b485c5ca99 100644 --- a/plugins/SmileyAdd/src/options.cpp +++ b/plugins/SmileyAdd/src/options.cpp @@ -529,7 +529,7 @@ bool OptionsDialogType::BrowseForSmileyPacks(int item) {
OPENFILENAME ofn = {0};
- TCHAR filename[MAX_PATH] = L"";
+ TCHAR filename[MAX_PATH] = _T("");
ofn.lpstrFile = filename;
ofn.nMaxFile = SIZEOF(filename);
@@ -537,7 +537,7 @@ bool OptionsDialogType::BrowseForSmileyPacks(int item) SmileyCategoryType* smc = tmpsmcat.GetSmileyCategory(item);
if (smc->GetFilename().empty())
{
- pathToAbsolute(L"Smileys", inidir);
+ pathToAbsolute(_T("Smileys"), inidir);
}
else
{
@@ -551,21 +551,21 @@ bool OptionsDialogType::BrowseForSmileyPacks(int item) TCHAR filter[512], *pfilter;
_tcscpy(filter, TranslateT("Smiley Packs"));
- lstrcat(filter, L" (*.msl;*.asl;*.xep)");
+ lstrcat(filter, _T(" (*.msl;*.asl;*.xep)"));
pfilter = filter + _tcslen(filter) + 1;
- _tcscpy(pfilter, L"*.msl;*.asl;*.xep");
+ _tcscpy(pfilter, _T("*.msl;*.asl;*.xep"));
pfilter = pfilter + _tcslen(pfilter) + 1;
_tcscpy(pfilter, TranslateT("All Files"));
- lstrcat(pfilter, L" (*.*)");
+ lstrcat(pfilter, _T(" (*.*)"));
pfilter = pfilter + _tcslen(pfilter) + 1;
- _tcscpy(pfilter, L"*.*");
+ _tcscpy(pfilter, _T("*.*"));
pfilter = pfilter + _tcslen(pfilter) + 1;
*pfilter = '\0';
ofn.lpstrFilter = filter;
ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY | OFN_READONLY |
OFN_EXPLORER | OFN_LONGNAMES | OFN_NOCHANGEDIR;
- ofn.lpstrDefExt = L"msl";
+ ofn.lpstrDefExt = _T("msl");
if (GetOpenFileName(&ofn))
{
@@ -663,7 +663,7 @@ void OptionsType::ReadPackFileName(bkstring& filename, const bkstring& name, const bkstring& defaultFilename)
{
DBVARIANT dbv;
- bkstring settingKey = name + L"-filename";
+ bkstring settingKey = name + _T("-filename");
INT_PTR res = DBGetContactSettingTString(NULL, "SmileyAdd", T2A_SM(settingKey.c_str()), &dbv);
if (res == 0)
@@ -678,7 +678,7 @@ void OptionsType::ReadPackFileName(bkstring& filename, const bkstring& name, void OptionsType::WritePackFileName(const bkstring& filename, const bkstring& name)
{
- bkstring settingKey = name + L"-filename";
+ bkstring settingKey = name + _T("-filename");
DBWriteContactSettingTString(NULL, "SmileyAdd", T2A_SM(settingKey.c_str()),
filename.c_str());
}
|