Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.3, 2.0.4, and 2.0.5

stable cmenu: eliminate last param or CShellExtCMenu::AddMenuList

Changeset fc2d52bfeebb

Parent 6e193bd7753d

by Adrian Buehlmann

Changes to 2 files · Browse files at fc2d52bfeebb Showing diff from parent 6e193bd7753d Diff from another changeset...

 
122
123
124
125
126
 
127
128
129
 
130
131
132
 
308
309
310
311
 
312
313
314
 
122
123
124
 
 
125
126
127
 
128
129
130
131
 
307
308
309
 
310
311
312
313
@@ -122,11 +122,10 @@
 ;     -void CShellExtCMenu::AddMenuList( - UINT idCmd, const std::string& name, MenuDescriptionMap& menuDescMap) +void CShellExtCMenu::AddMenuList(UINT idCmd, const std::string& name)  {   TDEBUG_TRACE("AddMenuList: idCmd = " << idCmd << " name = " << name); - MenuIdMap[idCmd] = menuDescMap[name]; + MenuIdMap[idCmd] = CMenuMenuDescMap[name];  }     @@ -308,7 +307,7 @@
      MenuDescription md = iter->second; - AddMenuList(idCmd - idCmdFirst, name, CMenuMenuDescMap); + AddMenuList(idCmd - idCmdFirst, name);   InsertMenuItemWithIcon1(   hMenu, indexMenu, idCmd, prefix + md.menuText, md.iconName);  }
 
37
38
39
40
41
 
42
43
44
 
37
38
39
 
 
40
41
42
43
@@ -37,8 +37,7 @@
  void InsertMenuItemByName(   HMENU hMenu, const std::string& name, UINT indexMenu,   UINT idCmd, UINT idCmdFirst, const std::wstring& prefix); - void AddMenuList(UINT idCmd, const std::string& name, - MenuDescriptionMap& menuDescMap); + void AddMenuList(UINT idCmd, const std::string& name);    public:   explicit CShellExtCMenu(const char dummy);