diff options
author | George Hazan <george.hazan@gmail.com> | 2016-07-25 10:31:04 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-07-25 10:31:04 +0000 |
commit | 8ae3679aa1339ce9abee53adb69902bd6b7513dc (patch) | |
tree | 94ef8927e12043ed6dcc15e1e640d68a8add520e /plugins/Watrack_MPD | |
parent | 1e273e28d89b5838e3d0f0cafac9676577cb71ce (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 'plugins/Watrack_MPD')
-rwxr-xr-x | plugins/Watrack_MPD/src/init.cpp | 4 | ||||
-rwxr-xr-x | plugins/Watrack_MPD/src/main.cpp | 14 | ||||
-rwxr-xr-x | plugins/Watrack_MPD/src/options.cpp | 4 |
3 files changed, 11 insertions, 11 deletions
diff --git a/plugins/Watrack_MPD/src/init.cpp b/plugins/Watrack_MPD/src/init.cpp index d33cca945b..b93924c163 100755 --- a/plugins/Watrack_MPD/src/init.cpp +++ b/plugins/Watrack_MPD/src/init.cpp @@ -51,8 +51,8 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) void InitVars()
{
gbPort = db_get_w(NULL, szModuleName, "Port", 6600);
- gbHost = UniGetContactSettingUtf(NULL, szModuleName, "Server", _T("127.0.0.1"));
- gbPassword = UniGetContactSettingUtf(NULL, szModuleName, "Password", _T(""));
+ gbHost = UniGetContactSettingUtf(NULL, szModuleName, "Server", L"127.0.0.1");
+ gbPassword = UniGetContactSettingUtf(NULL, szModuleName, "Password", L"");
}
static int OnModulesLoaded(WPARAM, LPARAM)
diff --git a/plugins/Watrack_MPD/src/main.cpp b/plugins/Watrack_MPD/src/main.cpp index 7fac682f62..079718a0f9 100755 --- a/plugins/Watrack_MPD/src/main.cpp +++ b/plugins/Watrack_MPD/src/main.cpp @@ -137,7 +137,7 @@ int Parser() SongInfo.mfile = mir_utf8decodeT(tmp); } else - SongInfo.mfile = mir_tstrdup(_T("")); + SongInfo.mfile = mir_tstrdup(L""); if(ptr = strstr(buf, "Time:")) { ptr = &ptr[6]; @@ -167,7 +167,7 @@ int Parser() SongInfo.title = mir_utf8decodeT(tmp); } else - SongInfo.title = mir_tstrdup(_T("Unknown track")); + SongInfo.title = mir_tstrdup(L"Unknown track"); if(ptr = strstr(buf, "Artist:")) { ptr = &ptr[8]; @@ -177,7 +177,7 @@ int Parser() SongInfo.artist = mir_utf8decodeT(tmp); } else - SongInfo.artist = mir_tstrdup(_T("Unknown artist")); + SongInfo.artist = mir_tstrdup(L"Unknown artist"); if(ptr = strstr(buf, "Genre:")) { ptr = &ptr[7]; @@ -187,7 +187,7 @@ int Parser() SongInfo.genre = mir_utf8decodeT(tmp); } else - SongInfo.genre = mir_tstrdup(_T("Unknown genre")); + SongInfo.genre = mir_tstrdup(L"Unknown genre"); if(ptr = strstr(buf, "Album:")) { ptr = &ptr[7]; @@ -197,7 +197,7 @@ int Parser() SongInfo.album = mir_utf8decodeT(tmp); } else - SongInfo.album = mir_tstrdup(_T("Unknown album")); + SongInfo.album = mir_tstrdup(L"Unknown album"); if(ptr = strstr(buf, "Date:")) { ptr = &ptr[6]; @@ -207,7 +207,7 @@ int Parser() SongInfo.year = mir_utf8decodeT(tmp); } else - SongInfo.year = mir_tstrdup(_T("Unknown year")); + SongInfo.year = mir_tstrdup(L"Unknown year"); if(ptr = strstr(buf, "volume:")) { ptr = &ptr[8]; @@ -413,7 +413,7 @@ void RegisterPlayer() { PLAYERCELL player = {0}; player.Desc = "Music Player Daemon"; - player.Notes = _T("mpd is a nice music player for *nix which have not any gui, just daemon.\nuses very small amount of ram, cpu."); + player.Notes = L"mpd is a nice music player for *nix which have not any gui, just daemon.\nuses very small amount of ram, cpu."; player.URL = "http://www.musicpd.org"; player.Check = CheckPlayer; player.Init = Init; diff --git a/plugins/Watrack_MPD/src/options.cpp b/plugins/Watrack_MPD/src/options.cpp index 6641d3ed30..54d0c2d6ce 100755 --- a/plugins/Watrack_MPD/src/options.cpp +++ b/plugins/Watrack_MPD/src/options.cpp @@ -24,10 +24,10 @@ static INT_PTR CALLBACK DlgProcWaMpdOpts(HWND hwndDlg, UINT msg, WPARAM, LPARAM { TranslateDialogDefault(hwndDlg); SetDlgItemInt(hwndDlg, IDC_PORT, db_get_w(NULL, szModuleName, "Port", 6600), FALSE); - TCHAR *tmp = UniGetContactSettingUtf(NULL, szModuleName, "Server", _T("127.0.0.1")); + TCHAR *tmp = UniGetContactSettingUtf(NULL, szModuleName, "Server", L"127.0.0.1"); SetDlgItemText(hwndDlg, IDC_SERVER, tmp); mir_free(tmp); - tmp = UniGetContactSettingUtf(NULL, szModuleName, "Password", _T("")); + tmp = UniGetContactSettingUtf(NULL, szModuleName, "Password", L""); SetDlgItemText(hwndDlg, IDC_PASSWORD, tmp); mir_free(tmp); return TRUE; |