diff options
author | George Hazan <ghazan@miranda.im> | 2022-09-10 03:23:51 -0700 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-09-10 03:23:51 -0700 |
commit | 6847777dfa98b0436a642277b757c3b09717817c (patch) | |
tree | fd042ecc582eb86a4ac29a3dfb50a31453a4e5da /protocols/CloudFile/src/Services/yandex_service.cpp | |
parent | f9bfb22761ce245be0681bec065d04388f586b72 (diff) |
no need to export Miranda's offal to the outside world
Diffstat (limited to 'protocols/CloudFile/src/Services/yandex_service.cpp')
-rw-r--r-- | protocols/CloudFile/src/Services/yandex_service.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |