[gtkmm/gtkmm-3-10] Don't assert argc/argv are non-null in Application::run()
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm/gtkmm-3-10] Don't assert argc/argv are non-null in Application::run()
- Date: Wed, 30 Apr 2014 07:37:06 +0000 (UTC)
commit f14cb45d7bc294339b4bfdfa97d119b8f35759b3
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 4498ed8..e2cb71b 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]