summaryrefslogtreecommitdiff
path: root/src/modules/skin/hotkey_opts.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-11-30 21:20:14 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-11-30 21:20:14 +0000
commitd9c98bcdfca6da51a1a82dc6c0dc5996b3b6cd6d (patch)
treea6f925c63bc31e4b4dba301183cc3b429d52d816 /src/modules/skin/hotkey_opts.cpp
parentce2d4f19e3f810b282eb7d47d470d426ff459e1f (diff)
new sorting functions applied
git-svn-id: http://svn.miranda-ng.org/main/trunk@11180 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/skin/hotkey_opts.cpp')
-rw-r--r--src/modules/skin/hotkey_opts.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/modules/skin/hotkey_opts.cpp b/src/modules/skin/hotkey_opts.cpp
index 2b5f8ac7f3..909f02b885 100644
--- a/src/modules/skin/hotkey_opts.cpp
+++ b/src/modules/skin/hotkey_opts.cpp
@@ -246,23 +246,23 @@ static int CALLBACK sttOptionsSortList(LPARAM lParam1, LPARAM lParam2, LPARAM lP
item2 = (THotkeyItem *)lvi.lParam;
if (!item1 && !item2)
- return lstrcmp(title1, title2);
+ return mir_tstrcmp(title1, title2);
if (!item1 && item2) {
- if (res = lstrcmp(title1, item2->getSection()))
+ if (res = mir_tstrcmp(title1, item2->getSection()))
return res;
return -1;
}
if (!item2 && item1) {
- if (res = lstrcmp(item1->getSection(), title2))
+ if (res = mir_tstrcmp(item1->getSection(), title2))
return res;
return 1;
}
/* item1 != NULL && item2 != NULL */
- if (res = lstrcmp(item1->getSection(), item2->getSection())) return res;
- if (res = lstrcmp(item1->getDescr(), item2->getDescr())) return res;
+ if (res = mir_tstrcmp(item1->getSection(), item2->getSection())) return res;
+ if (res = mir_tstrcmp(item1->getDescr(), item2->getDescr())) return res;
if (!item1->rootHotkey && item2->rootHotkey) return -1;
if (item1->rootHotkey && !item2->rootHotkey) return 1;
return 0;
@@ -357,7 +357,7 @@ static void sttBuildHotkeyList(HWND hwndList)
if (item->OptDeleted)
continue;
- if (!i || lstrcmp(item->ptszSection, hotkeys[i-1]->ptszSection)) {
+ if (!i || mir_tstrcmp(item->ptszSection, hotkeys[i-1]->ptszSection)) {
lvi.mask = LVIF_TEXT|LVIF_PARAM;
lvi.iItem = nItems++;
lvi.iSubItem = 0;
@@ -872,7 +872,7 @@ static INT_PTR CALLBACK sttOptionsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam,
ListView_GetItem(lpnmhdr->hwndFrom, &lvi);
item = (THotkeyItem *)lvi.lParam;
if (!item) continue;
- if (!lstrcmp( item->getSection(), buf)) {
+ if (!mir_tstrcmp( item->getSection(), buf)) {
ListView_DeleteItem(lpnmhdr->hwndFrom, lvi.iItem);
--lvi.iItem;
--count;
@@ -887,7 +887,7 @@ static INT_PTR CALLBACK sttOptionsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam,
if (item->OptDeleted)
continue;
- if ( lstrcmp(buf, item->getSection()))
+ if ( mir_tstrcmp(buf, item->getSection()))
continue;
lvi.mask = LVIF_PARAM|LVIF_INDENT;