diff --git a/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp b/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp index cb8cfdc0..f4cf1d12 100644 --- a/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp +++ b/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp @@ -684,7 +684,7 @@ bool PluginViewList::removeFromListIndex(size_t index2remove) for (size_t i = 0; i < _ui.nbItem(); ++i) { - if (_ui.getLParamFromIndex(i) == reinterpret_cast(_list[index2remove])) + if (_ui.getLParamFromIndex(static_cast(i)) == reinterpret_cast(_list[index2remove])) { if (!_ui.removeFromIndex(i)) return false; @@ -700,9 +700,9 @@ bool PluginViewList::removeFromPluginInfoPtr(PluginUpdateInfo* pluginInfo2hide) { for (size_t i = 0; i < _ui.nbItem(); ++i) { - if (_ui.getLParamFromIndex(i) == reinterpret_cast(pluginInfo2hide)) + if (_ui.getLParamFromIndex(static_cast(i)) == reinterpret_cast(pluginInfo2hide)) { - if (!_ui.removeFromIndex(i)) + if (!_ui.removeFromIndex(static_cast(i))) { return false; } @@ -725,9 +725,9 @@ bool PluginViewList::hideFromPluginInfoPtr(PluginUpdateInfo* pluginInfo2hide) { for (size_t i = 0; i < _ui.nbItem(); ++i) { - if (_ui.getLParamFromIndex(i) == reinterpret_cast(pluginInfo2hide)) + if (_ui.getLParamFromIndex(static_cast(i)) == reinterpret_cast(pluginInfo2hide)) { - if (!_ui.removeFromIndex(i)) + if (!_ui.removeFromIndex(static_cast(i))) { return false; } @@ -769,9 +769,9 @@ bool PluginViewList::hideFromListIndex(size_t index2hide) for (size_t i = 0; i < _ui.nbItem(); ++i) { - if (_ui.getLParamFromIndex(i) == reinterpret_cast(_list[index2hide])) + if (_ui.getLParamFromIndex(static_cast(i)) == reinterpret_cast(_list[index2hide])) { - if (!_ui.removeFromIndex(i)) + if (!_ui.removeFromIndex(static_cast(i))) return false; } } diff --git a/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.h b/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.h index 233e0b1b..cb5fd7ae 100644 --- a/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.h +++ b/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.h @@ -109,7 +109,7 @@ public: void reSizeView(RECT & rc) { _ui.reSizeTo(rc); } void setViewStyleOption(int32_t extraStyle) { _ui.setStyleOption(extraStyle); }; size_t nbItem() const { return _ui.nbItem(); }; - PluginUpdateInfo* getPluginInfoFromUiIndex(int index) const { return reinterpret_cast(_ui.getLParamFromIndex(index)); }; + PluginUpdateInfo* getPluginInfoFromUiIndex(size_t index) const { return reinterpret_cast(_ui.getLParamFromIndex(static_cast(index))); }; PluginUpdateInfo* findPluginInfoFromFolderName(const generic_string& folderName, int& index) const; bool removeFromListIndex(size_t index2remove); bool hideFromListIndex(size_t index2Hide);