Skip to content

Commit

Permalink
WAGE: More const'ness
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Feb 14, 2016
1 parent a31cfff commit c0be640
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion engines/wage/entities.cpp
Expand Up @@ -151,7 +151,7 @@ void Scene::paint(Graphics::Surface *surface, int x, int y) {

// Source: Apple IIGS Technical Note #41, "Font Family Numbers"
// http://apple2.boldt.ca/?page=til/tn.iigs.041
const char *fontNames[] = {
static const char *const fontNames[] = {
"Chicago", // system font
"Geneva", // application font
"New York",
Expand Down
4 changes: 2 additions & 2 deletions engines/wage/menu.cpp
Expand Up @@ -85,7 +85,7 @@ struct MenuData {
int action;
byte shortcut;
bool enabled;
} menuSubItems[] = {
} static const menuSubItems[] = {
{ kMenuFile, "New", kMenuActionNew, 0, false },
{ kMenuFile, "Open...", kMenuActionOpen, 0, false },
{ kMenuFile, "Close", kMenuActionClose, 0, true },
Expand Down Expand Up @@ -121,7 +121,7 @@ Menu::Menu(Gui *gui) : _gui(gui) {
_items.push_back(edit);

for (int i = 0; menuSubItems[i].menunum; i++) {
MenuData *m = &menuSubItems[i];
const MenuData *m = &menuSubItems[i];

_items[m->menunum]->subitems.push_back(new MenuSubItem(m->title, m->action, 0, m->shortcut, m->enabled));
}
Expand Down

0 comments on commit c0be640

Please sign in to comment.