From ec8a7614a371f41937dc1dbc2d53289e45706e3a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 21 May 2023 13:56:23 +0300 Subject: static function pfnGetEvent removed from CLIST_INTERFACE --- src/core/stdfile/src/file.cpp | 2 +- src/core/stdmsg/src/msgdialog.cpp | 2 +- src/core/stdmsg/src/tabs.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core') diff --git a/src/core/stdfile/src/file.cpp b/src/core/stdfile/src/file.cpp index 652da6a36c..20e9ba44a9 100644 --- a/src/core/stdfile/src/file.cpp +++ b/src/core/stdfile/src/file.cpp @@ -266,7 +266,7 @@ static int SRFileProtoAck(WPARAM, LPARAM lParam) ACKDATA *ack = (ACKDATA*)lParam; if (ack->type == ACKTYPE_FILE) { int iEvent = 0; - while (CLISTEVENT *cle = g_clistApi.pfnGetEvent(ack->hContact, iEvent++)) + while (auto *cle = Clist_GetEvent(ack->hContact, iEvent++)) if (cle->lParam == (LPARAM)ack->hProcess) g_clistApi.pfnRemoveEvent(ack->hContact, cle->hDbEvent); } diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp index 22f16ec7c4..63fde09620 100644 --- a/src/core/stdmsg/src/msgdialog.cpp +++ b/src/core/stdmsg/src/msgdialog.cpp @@ -272,7 +272,7 @@ void CMsgDialog::OnActivate() if (db_get_w(m_hContact, m_si->pszModule, "ApparentMode", 0) != 0) db_set_w(m_hContact, m_si->pszModule, "ApparentMode", 0); - if (g_clistApi.pfnGetEvent(m_hContact, 0)) + if (Clist_GetEvent(m_hContact, 0)) g_clistApi.pfnRemoveEvent(m_hContact, GC_FAKE_EVENT); } else { diff --git a/src/core/stdmsg/src/tabs.cpp b/src/core/stdmsg/src/tabs.cpp index fcce849ab8..e6a5d34e93 100644 --- a/src/core/stdmsg/src/tabs.cpp +++ b/src/core/stdmsg/src/tabs.cpp @@ -476,7 +476,7 @@ void CTabbedWindow::TabClicked() if (si->wState & GC_EVENT_HIGHLIGHT) { si->wState &= ~GC_EVENT_HIGHLIGHT; - if (g_clistApi.pfnGetEvent(si->hContact, 0)) + if (Clist_GetEvent(si->hContact, 0)) g_clistApi.pfnRemoveEvent(si->hContact, GC_FAKE_EVENT); } -- cgit v1.2.3