@@ -564,18 +564,18 @@ void MenuManager::subclassNotepadPlusPlus()
564564FuncItem* MenuManager::getFuncItemArray (int *nbF, ItemVectorTD items, runScriptIDFunc runScript, idx_t dynamicStartIndex, idx_t scriptsMenuIndex, idx_t stopScriptIndex, idx_t runPreviousIndex)
565565{
566566 s_runScript = runScript;
567-
567+
568568
569569 ConfigFile* configFile = ConfigFile::getInstance ();
570570
571571 ConfigFile::MenuItemsTD menuItems = configFile->getMenuItems ();
572-
572+
573573
574574
575575
576576 // Remove one from the count of menu items if the list is empty
577577 // as we'll only have one separator
578- *nbF = menuItems.size () + items.size () + (menuItems.empty () ? 0 : 1 );
578+ *nbF = ( int )( menuItems.size () + items.size () + (menuItems.empty () ? 0 : 1 ) );
579579
580580 m_funcItemCount = (size_t )*nbF;
581581
@@ -791,9 +791,9 @@ void MenuManager::deleteInstance()
791791}
792792
793793
794- int MenuManager::findPluginCommand (const TCHAR *pluginName, const TCHAR *menuOption, bool refreshCache)
794+ idx_t MenuManager::findPluginCommand (const TCHAR *pluginName, const TCHAR *menuOption, bool refreshCache)
795795{
796- int retVal = 0 ;
796+ idx_t retVal = 0 ;
797797 bool fromCache = false ;
798798 if (!refreshCache)
799799 {
@@ -873,7 +873,7 @@ int MenuManager::findPluginCommand(const TCHAR *pluginName, const TCHAR *menuOpt
873873
874874
875875
876- int MenuManager::findMenuCommand (const TCHAR *menuName, const TCHAR *menuOption, bool refreshCache)
876+ idx_t MenuManager::findMenuCommand (const TCHAR *menuName, const TCHAR *menuOption, bool refreshCache)
877877{
878878 if (!refreshCache)
879879 {
@@ -885,7 +885,7 @@ int MenuManager::findMenuCommand(const TCHAR *menuName, const TCHAR *menuOption,
885885 }
886886
887887 HMENU hMenuBar = ::GetMenu (m_hNotepad);
888- int retVal = findMenuCommand (hMenuBar, menuName, menuOption);
888+ idx_t retVal = findMenuCommand (hMenuBar, menuName, menuOption);
889889
890890 if (retVal != 0 )
891891 {
@@ -906,10 +906,10 @@ tstring MenuManager::formatMenuName(const TCHAR *name)
906906 return nameStr;
907907}
908908
909- int MenuManager::findMenuCommand (HMENU hParentMenu, const TCHAR *menuName, const TCHAR *menuOption)
909+ idx_t MenuManager::findMenuCommand (HMENU hParentMenu, const TCHAR *menuName, const TCHAR *menuOption)
910910{
911911 size_t iMenuItems = (size_t )GetMenuItemCount (hParentMenu);
912- int retVal = 0 ;
912+ idx_t retVal = 0 ;
913913
914914 TCHAR strBuffer[500 ];
915915
@@ -940,7 +940,7 @@ int MenuManager::findMenuCommand(HMENU hParentMenu, const TCHAR *menuName, const
940940
941941 if (0 == _tcsicmp (menuOption, nameStr.c_str ()))
942942 {
943- return ::GetMenuItemID (mii.hSubMenu , subMenuPos);
943+ return ::GetMenuItemID (mii.hSubMenu , ( int ) subMenuPos);
944944 }
945945 }
946946 }
0 commit comments