From 6847777dfa98b0436a642277b757c3b09717817c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 10 Sep 2022 03:23:51 -0700 Subject: no need to export Miranda's offal to the outside world --- protocols/CloudFile/src/Services/yandex_service.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/CloudFile/src/Services/yandex_service.cpp') diff --git a/protocols/CloudFile/src/Services/yandex_service.cpp b/protocols/CloudFile/src/Services/yandex_service.cpp index 739d8a2722..f21e9ef2e0 100644 --- a/protocols/CloudFile/src/Services/yandex_service.cpp +++ b/protocols/CloudFile/src/Services/yandex_service.cpp @@ -8,7 +8,7 @@ struct CMPluginYandex : public CMPluginBase { m_hInst = g_plugin.getInst(); - RegisterProtocol(PROTOTYPE_PROTOWITHACCS, (pfnInitProto)CYandexService::Init, (pfnUninitProto)CYandexService::UnInit); + RegisterProtocol(PROTOTYPE_PROTOWITHACCS, CYandexService::Init, CYandexService::UnInit); } } g_pluginYandex; @@ -21,16 +21,16 @@ CYandexService::CYandexService(const char *protoName, const wchar_t *userName) : m_hProtoIcon = g_plugin.getIconHandle(IDI_YADISK); } -CYandexService* CYandexService::Init(const char *moduleName, const wchar_t *userName) +PROTO_INTERFACE* CYandexService::Init(const char *moduleName, const wchar_t *userName) { CYandexService *proto = new CYandexService(moduleName, userName); Services.insert(proto); return proto; } -int CYandexService::UnInit(CYandexService *proto) +int CYandexService::UnInit(PROTO_INTERFACE *proto) { - Services.remove(proto); + Services.remove((CYandexService*)proto); delete proto; return 0; } -- cgit v1.2.3