Change the way we call 'Gtk::Main' when building with MSVC
authorJohn Emmas <johne53@tiscali.co.uk>
Tue, 17 Mar 2015 14:53:53 +0000 (14:53 +0000)
committerJohn Emmas <johne53@tiscali.co.uk>
Tue, 17 Mar 2015 14:54:39 +0000 (14:54 +0000)
This is just to accommodate the fact that 'command_line_parse_error()' uses pointers to argc & argv

gtk2_ardour/main.cc

index 062174a4420c935fad5c6e51a6dbf97a96025605..998337ed0994b3a8b499bf3a9dd8fea0b7599950 100644 (file)
@@ -214,7 +214,7 @@ static void console_madness_end () {}
 static void command_line_parse_error (int *argc, char** argv[]) {
        // Since we don't ordinarily have access to stdout and stderr with
        // an MSVC app, let the user know we encountered a parsing error.
-       Gtk::Main app(&argc, &argv); // Calls 'gtk_init()'
+       Gtk::Main app(argc, argv); // Calls 'gtk_init()'
 
        Gtk::MessageDialog dlgReportParseError (_("\n   Ardour could not understand your command line      "),
                        false, MESSAGE_ERROR, BUTTONS_CLOSE, true);