[gtkmm] Don't assert argc/argv are non-null in Application::run()

commit 43b333f40526a9ab25cba5466191b2ca96c765bb
Author: Jonathon Jongsma <jjongsma redhat com>
Date:   Tue Apr 29 13:11:15 2014 -0500

    Don't assert argc/argv are non-null in Application::run()
    NULL is a valid value to pass to gtk_init(), and these asserts make it
    impossible to use theses functions with NULL argc/argv.

 gtk/src/application.ccg |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/gtk/src/application.ccg b/gtk/src/application.ccg
index 50d2d8c..d948799 100644
--- a/gtk/src/application.ccg
+++ b/gtk/src/application.ccg
@@ -142,9 +142,6 @@ int Application::run(Window& window, int argc, char** argv)
 int Application::run(Window& window)
-  g_assert(m_argc);
-  g_assert(m_argv);
   //We cannot add and show the window until the GApplication::activate signal
   //has been emitted, or we will crash because the application has not been
   //registered. (At least if window is an ApplicationWindow.)
@@ -159,9 +156,6 @@ int Application::run(Window& window)
 int Application::run()
-  g_assert(m_argc);
-  g_assert(m_argv);
   const int result = Gio::Application::run(m_argc, m_argv);
   return result;

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]