diff options
author | George Hazan <george.hazan@gmail.com> | 2023-12-05 20:23:35 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-12-05 20:23:35 +0300 |
commit | 5eab82b9f3104bc5a1ac9a033daf91a9bd627ee8 (patch) | |
tree | 95a96f5a259b0b26de5f33c97e7a00b3ff0881d8 | |
parent | 840abdb4bcb86f2d4398e423735ae0c39d2ef32b (diff) |
code cleaning
-rw-r--r-- | plugins/TabSRMM/src/msgdlgutils.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
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;
|