diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-03-08 19:52:02 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-03-08 19:52:02 +0000 |
commit | 95e14ab79254cdddf5eb25984b74e370d31ab0c2 (patch) | |
tree | efd0e7d2632937504bbe4f67db760887750073b4 /src/gui/buysell.cpp | |
parent | 405c23831a4e1363f26f848215c8140f6d6d9f78 (diff) | |
download | mana-95e14ab79254cdddf5eb25984b74e370d31ab0c2.tar.gz mana-95e14ab79254cdddf5eb25984b74e370d31ab0c2.tar.bz2 mana-95e14ab79254cdddf5eb25984b74e370d31ab0c2.tar.xz mana-95e14ab79254cdddf5eb25984b74e370d31ab0c2.zip |
Some fixes for compiling with pedantic compiler settings and const char* checks.
Diffstat (limited to 'src/gui/buysell.cpp')
-rw-r--r-- | src/gui/buysell.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/buysell.cpp b/src/gui/buysell.cpp index ccd82db5..d4c33d30 100644 --- a/src/gui/buysell.cpp +++ b/src/gui/buysell.cpp @@ -31,12 +31,12 @@ BuySellDialog::BuySellDialog(): Window("Shop") { Button *buyButton = 0; - char *buttonNames[] = { + const char *buttonNames[] = { "Buy", "Sell", "Cancel", 0 }; int x = 10, y = 10; - for (char **curBtn = buttonNames; *curBtn; curBtn++) + for (const char **curBtn = buttonNames; *curBtn; curBtn++) { Button *btn = new Button(*curBtn); if (!buyButton) buyButton = btn; // For focus request |