diff options
author | George Hazan <george.hazan@gmail.com> | 2015-05-19 13:10:00 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-05-19 13:10:00 +0000 |
commit | 11b8719d106635799800b09e203628d0c7ff2f4c (patch) | |
tree | d92f055207a492d9fa2857fcb3fe923f376b43bc /src | |
parent | 24a39515399e9555dd0e4ad72b7a22f9152b0adf (diff) |
control comparator function removed from the class definition
git-svn-id: http://svn.miranda-ng.org/main/trunk@13694 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_core/src/mir_core.def | 1 | ||||
-rw-r--r-- | src/mir_core/src/mir_core64.def | 1 | ||||
-rw-r--r-- | src/mir_core/src/ui_utils.cpp | 6 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/mir_core/src/mir_core.def b/src/mir_core/src/mir_core.def index 489473cc41..f42a795ad6 100644 --- a/src/mir_core/src/mir_core.def +++ b/src/mir_core/src/mir_core.def @@ -1066,7 +1066,6 @@ mir_wstrcmpi @280 ?UpdateStatusBar@CProtoIntDlgBase@@AAEXXZ @1067 NONAME
?WindowSubscribe@PROTO_INTERFACE@@QAEXPAUHWND__@@@Z @1068 NONAME
?WindowUnsubscribe@PROTO_INTERFACE@@QAEXPAUHWND__@@@Z @1069 NONAME
-?cmp@CCtrlBase@@SAHPBV1@0@Z @1070 NONAME
ProtoWindowAdd @1071 NONAME
ProtoWindowRemove @1072 NONAME
Proto_IsProtocolLoaded @1073 NONAME
diff --git a/src/mir_core/src/mir_core64.def b/src/mir_core/src/mir_core64.def index cd8e726c37..b2adec82c1 100644 --- a/src/mir_core/src/mir_core64.def +++ b/src/mir_core/src/mir_core64.def @@ -1066,7 +1066,6 @@ mir_wstrcmpi @280 ?UpdateStatusBar@CProtoIntDlgBase@@AEAAXXZ @1067 NONAME
?WindowSubscribe@PROTO_INTERFACE@@QEAAXPEAUHWND__@@@Z @1068 NONAME
?WindowUnsubscribe@PROTO_INTERFACE@@QEAAXPEAUHWND__@@@Z @1069 NONAME
-?cmp@CCtrlBase@@SAHPEBV1@0@Z @1070 NONAME
ProtoWindowAdd @1071 NONAME
ProtoWindowRemove @1072 NONAME
Proto_IsProtocolLoaded @1073 NONAME
diff --git a/src/mir_core/src/ui_utils.cpp b/src/mir_core/src/ui_utils.cpp index 3249499003..deb0ed00ed 100644 --- a/src/mir_core/src/ui_utils.cpp +++ b/src/mir_core/src/ui_utils.cpp @@ -41,8 +41,12 @@ static LIST<CCtrlBase> arControls(10, CompareControls); #pragma comment(lib, "uxtheme")
+static int CompareControlId(const CCtrlBase *c1, const CCtrlBase *c2)
+{ return c1->GetCtrlId() - c2->GetCtrlId();
+}
+
CDlgBase::CDlgBase(HINSTANCE hInst, int idDialog)
- : m_controls(1, CCtrlBase::cmp)
+ : m_controls(1, CompareControlId)
{
m_hInst = hInst;
m_idDialog = idDialog;
|