From d9b26ea2f38f0ac9554f999bc9d9806d4762d3d7 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Tue, 9 Dec 2014 08:31:44 +0000 Subject: code cleanup (by Mataes) git-svn-id: http://svn.miranda-ng.org/main/trunk@11296 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/msgdlgutils.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/TabSRMM/src/msgdlgutils.cpp') diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp index a41827ce05..9712a49f0c 100644 --- a/plugins/TabSRMM/src/msgdlgutils.cpp +++ b/plugins/TabSRMM/src/msgdlgutils.cpp @@ -44,12 +44,11 @@ static int g_status_events[] = { }; static int g_status_events_size = 0; -#define MAX_REGS(_A_) ( sizeof(_A_) / sizeof(_A_[0])) bool TSAPI IsStatusEvent(int eventType) { if (g_status_events_size == 0) - g_status_events_size = MAX_REGS(g_status_events); + g_status_events_size = SIZEOF(g_status_events); for (int i = 0; i < g_status_events_size; i++) { if (eventType == g_status_events[i]) -- cgit v1.2.3