Changeset 599be7707fd3…
Parent c1232aee254b…
by
Changes to 2 files · Browse files at 599be7707fd3 Showing diff from parent c1232aee254b Diff from another changeset...
@@ -115,7 +115,7 @@ MenuDescriptionMap MenuDescMap;
MenuIdCmdMap MenuIdMap;
-void AddMenuList(int idCmd, std::string const& name)
+void AddMenuList(int idCmd, const std::string& name)
{
TDEBUG_TRACE("AddMenuList: idCmd = " << idCmd << " name = " << name);
MenuIdMap[idCmd] = MenuDescMap[name];
@@ -138,7 +138,7 @@}
void InsertMenuItemWithIcon(HMENU hMenu, int indexMenu, int idCmd,
- std::string const& menuText, std::string const& iconName)
+ const std::string& menuText, const std::string& iconName)
{
MENUITEMINFO mi;
mi.cbSize = sizeof(mi);
@@ -163,7 +163,7 @@}
void InsertSubMenuItemWithIcon(HMENU hMenu, HMENU hSubMenu, int indexMenu, int idCmd,
- std::string const& menuText, std::string const& iconName)
+ const std::string& menuText, const std::string& iconName)
{
MENUITEMINFO mi;
mi.cbSize = sizeof(mi);
@@ -188,7 +188,7 @@ InsertMenuItem(hMenu, indexMenu, TRUE, &mi);
}
-void InsertMenuItemByName(HMENU hMenu, std::string const& name, int indexMenu,
+void InsertMenuItemByName(HMENU hMenu, const std::string& name, int indexMenu,
int idCmd, int idCmdFirst)
{
TDEBUG_TRACE("InsertMenuItemByName: name = " << name);
|
@@ -42,7 +42,7 @@ };
-bool hasHgDir(std::string const& path)
+bool hasHgDir(const std::string& path)
{
return PathIsDirectory((path + "\\.hg").c_str()) != 0;
}
|
Loading...