diff options
author | Cameron Cawley | 2019-08-10 14:50:33 +0100 |
---|---|---|
committer | Cameron Cawley | 2019-08-10 14:50:33 +0100 |
commit | 9052a16887f21190865812cbe887b250d91074ae (patch) | |
tree | 3a7367e41025b52f2b9531bbe86b0ff61da87ec0 /engines | |
parent | 1632fba91e672c2e3ee2bbc15cfcccd1c0fe3533 (diff) | |
download | scummvm-rg350-9052a16887f21190865812cbe887b250d91074ae.tar.gz scummvm-rg350-9052a16887f21190865812cbe887b250d91074ae.tar.bz2 scummvm-rg350-9052a16887f21190865812cbe887b250d91074ae.zip |
GRAPHICS: MACGUI: Use Common::String for addMenuItem and addMenuSubItem
Diffstat (limited to 'engines')
-rw-r--r-- | engines/wage/gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp index 9c76418a59..6075ee1b05 100644 --- a/engines/wage/gui.cpp +++ b/engines/wage/gui.cpp @@ -102,11 +102,11 @@ Gui::Gui(WageEngine *engine) { _menu->addStaticMenus(menuSubItems); _menu->addMenuSubItem(kMenuAbout, _engine->_world->getAboutMenuItemName(), kMenuActionAbout); - _commandsMenuId = _menu->addMenuItem(_engine->_world->_commandsMenuName.c_str()); + _commandsMenuId = _menu->addMenuItem(_engine->_world->_commandsMenuName); regenCommandsMenu(); if (!_engine->_world->_weaponMenuDisabled) { - _weaponsMenuId = _menu->addMenuItem(_engine->_world->_weaponsMenuName.c_str()); + _weaponsMenuId = _menu->addMenuItem(_engine->_world->_weaponsMenuName); regenWeaponsMenu(); } else { @@ -226,7 +226,7 @@ void Gui::regenWeaponsMenu() { command += " "; command += obj->_name; - _menu->addMenuSubItem(_weaponsMenuId, command.c_str(), kMenuActionCommand, 0, 0, true); + _menu->addMenuSubItem(_weaponsMenuId, command, kMenuActionCommand, 0, 0, true); empty = false; } |