From e082885769df09cdf36c2f6b427ae1e759aac123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Mon, 22 Jul 2013 23:24:25 +0000 Subject: SimpleAR: Use ID_STATUS_* constants instead numbers git-svn-id: http://svn.miranda-ng.org/main/trunk@5451 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SimpleAR/src/Options.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'plugins/SimpleAR/src/Options.cpp') diff --git a/plugins/SimpleAR/src/Options.cpp b/plugins/SimpleAR/src/Options.cpp index aa4c3101ec..adb40e4972 100644 --- a/plugins/SimpleAR/src/Options.cpp +++ b/plugins/SimpleAR/src/Options.cpp @@ -27,7 +27,7 @@ INT_PTR CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara { mir_snprintf(tszStatus, SIZEOF(tszStatus), "%d", c); pszStatus=(TCHAR*)CallService(MS_CLIST_GETSTATUSMODEDESCRIPTION,(WPARAM)c,GSMDF_TCHAR); - if (c == 40072 || c == 40077 || c == 40078) + if (c == ID_STATUS_ONLINE || c == ID_STATUS_FREECHAT || c == ID_STATUS_INVISIBLE) continue; else { @@ -35,9 +35,9 @@ INT_PTR CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara if (!db_get_ts(NULL, protocolname, tszStatus, &dbv)) { - if (c < 40077) + if (c < ID_STATUS_FREECHAT) ptszMessage[c-ID_STATUS_ONLINE-1] = _tcsdup(dbv.ptszVal); - else if (c > 40078) + else if (c > ID_STATUS_INVISIBLE) ptszMessage[c-ID_STATUS_ONLINE-3] = _tcsdup(dbv.ptszVal); db_free(&dbv); } @@ -111,16 +111,16 @@ INT_PTR CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara for (int c=ID_STATUS_ONLINE; c40078 && ptszMessage[c-ID_STATUS_ONLINE-3]) + else if (c>ID_STATUS_INVISIBLE && ptszMessage[c-ID_STATUS_ONLINE-3]) db_set_ts(NULL,protocolname,szStatus,ptszMessage[c-ID_STATUS_ONLINE-3]); else db_unset(NULL,protocolname,szStatus); @@ -133,13 +133,13 @@ INT_PTR CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara case WM_DESTROY: for (int c=ID_STATUS_ONLINE; c40078) + else if (c>ID_STATUS_INVISIBLE) ptszMessage[c-ID_STATUS_ONLINE-3]=NULL; } } -- cgit v1.2.3