From 5eab82b9f3104bc5a1ac9a033daf91a9bd627ee8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 5 Dec 2023 20:23:35 +0300 Subject: code cleaning --- plugins/TabSRMM/src/msgdlgutils.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'plugins') diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp index 452090771b..df86de8dc8 100644 --- a/plugins/TabSRMM/src/msgdlgutils.cpp +++ b/plugins/TabSRMM/src/msgdlgutils.cpp @@ -43,15 +43,10 @@ static int g_status_events[] = { EVENTTYPE_JABBER_PRESENCE }; -static int g_status_events_size = 0; - bool TSAPI IsStatusEvent(int eventType) { - if (g_status_events_size == 0) - g_status_events_size = _countof(g_status_events); - - for (int i = 0; i < g_status_events_size; i++) { - if (eventType == g_status_events[i]) + for (auto &it : g_status_events) { + if (eventType == it) return true; } return false; -- cgit v1.2.3