aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-02-14 13:28:00 +0100
committerEugene Sandulenko2016-02-14 17:13:21 +0100
commitd91b52052de0b7a5e33529b2bcced1b97488a773 (patch)
treebc61052b5e8bfb3eef72431f771a1a203124ab94
parent5e21a82c1eb9b9e46a3be63c0ab2d6768b943159 (diff)
downloadscummvm-rg350-d91b52052de0b7a5e33529b2bcced1b97488a773.tar.gz
scummvm-rg350-d91b52052de0b7a5e33529b2bcced1b97488a773.tar.bz2
scummvm-rg350-d91b52052de0b7a5e33529b2bcced1b97488a773.zip
WAGE: Rename to match our naming conventions
-rw-r--r--engines/wage/menu.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/wage/menu.cpp b/engines/wage/menu.cpp
index a65d4dd36a..e6d4655012 100644
--- a/engines/wage/menu.cpp
+++ b/engines/wage/menu.cpp
@@ -202,14 +202,14 @@ void Menu::createCommandsMenu(MenuItem *menu) {
bool enabled = true;
int style = 0;
char shortcut = 0;
- const char *shortptr = strrchr(item.c_str(), '/');
- if (shortptr != NULL) {
- if (strlen(shortptr) == 2) {
- shortcut = shortptr[1];
+ const char *shortPtr = strrchr(item.c_str(), '/');
+ if (shortPtr != NULL) {
+ if (strlen(shortPtr) == 2) {
+ shortcut = shortPtr[1];
item.deleteLastChar();
item.deleteLastChar();
} else {
- error("Unexpected shortcut: '%s', item '%s' in menu '%s'", shortptr, item.c_str(), string.c_str());
+ error("Unexpected shortcut: '%s', item '%s' in menu '%s'", shortPtr, item.c_str(), string.c_str());
}
}