mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 21:06:59 -04:00
Fixed some gcc warnings
This commit is contained in:
@@ -57,7 +57,7 @@ void TextIOHandler::init() {
|
||||
// Use console mode if one of the cli flags is passed
|
||||
static const Char* redirect_flags[] = {_("-?"),_("--help"),_("-v"),_("--version"),_("--cli"),_("-c"),_("--export"),_("--create-installer")};
|
||||
for (int i = 1 ; i < wxTheApp->argc ; ++i) {
|
||||
for (int j = 0 ; j < sizeof(redirect_flags)/sizeof(redirect_flags[0]) ; ++j) {
|
||||
for (size_t j = 0 ; j < sizeof(redirect_flags)/sizeof(redirect_flags[0]) ; ++j) {
|
||||
if (String(wxTheApp->argv[i]) == redirect_flags[j]) {
|
||||
have_console = true;
|
||||
have_stderr = true;
|
||||
|
||||
@@ -51,7 +51,7 @@ NewSetWindow::NewSetWindow(Window* parent)
|
||||
game_list->showData<Game>();
|
||||
try {
|
||||
game_list->select(settings.default_game);
|
||||
} catch (FileNotFoundError e) {
|
||||
} catch (FileNotFoundError const& e) {
|
||||
handle_error(e);
|
||||
}
|
||||
game_list->SetFocus();
|
||||
|
||||
Reference in New Issue
Block a user