diff options
author | George Hazan <ghazan@miranda.im> | 2022-07-31 18:07:27 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-07-31 18:07:27 +0300 |
commit | 500dd4848842f6d4207584417448586d060fbd6a (patch) | |
tree | 569ac641e814da1d706d36b12eaf35183a3ce7a5 /protocols/Weather | |
parent | b47e4b4b32698470bf52c0dc1c2d1af56c46c9b5 (diff) |
Contact: group of functions gathered into the personal namespace
Diffstat (limited to 'protocols/Weather')
-rw-r--r-- | protocols/Weather/src/weather_addstn.cpp | 6 | ||||
-rw-r--r-- | protocols/Weather/src/weather_mwin.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/protocols/Weather/src/weather_addstn.cpp b/protocols/Weather/src/weather_addstn.cpp index 15b4f6e25a..24e6052b11 100644 --- a/protocols/Weather/src/weather_addstn.cpp +++ b/protocols/Weather/src/weather_addstn.cpp @@ -48,9 +48,9 @@ INT_PTR WeatherAddToList(WPARAM, LPARAM lParam) if (!mir_wstrcmpi(psr->email.w, dbv.pwszVal)) { // remove the flag for not on list and hidden, thus make the contact visible // and add them on the list - if (!Contact_OnList(hContact)) { - Contact_PutOnList(hContact); - Contact_Hide(hContact, false); + if (!Contact::OnList(hContact)) { + Contact::PutOnList(hContact); + Contact::Hide(hContact, false); } db_free(&dbv); // contact is added, function quitting diff --git a/protocols/Weather/src/weather_mwin.cpp b/protocols/Weather/src/weather_mwin.cpp index 0ef9991cff..da08be4ce1 100644 --- a/protocols/Weather/src/weather_mwin.cpp +++ b/protocols/Weather/src/weather_mwin.cpp @@ -243,7 +243,7 @@ static void addWindow(MCONTACT hContact) int frameID = g_plugin.addFrame(&Frame); g_plugin.setDword(hContact, "mwin", frameID); - Contact_Hide(hContact); + Contact::Hide(hContact); } void removeWindow(MCONTACT hContact) @@ -254,7 +254,7 @@ void removeWindow(MCONTACT hContact) CallService(MS_CLIST_FRAMES_REMOVEFRAME, frameId, 0); g_plugin.setDword(hContact, "mwin", 0); - Contact_Hide(hContact, false); + Contact::Hide(hContact, false); } void UpdateMwinData(MCONTACT hContact) |