summaryrefslogtreecommitdiff
path: root/plugins/SmileyAdd/src/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SmileyAdd/src/options.cpp')
-rw-r--r--plugins/SmileyAdd/src/options.cpp18
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());
}