diff options
author | Murray Cumming <murrayc@murrayc.com> | 2012-05-28 15:03:08 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2012-05-28 15:03:08 +0200 |
commit | 3de5a13f4f6863b669a793373a4cf89b99a956e0 (patch) | |
tree | 0a070b587c8f17caa368a6de9eb68c10e9283a41 | |
parent | b6ee18e086ba52a674ecb4c22dc51d9e9ea1d932 (diff) | |
download | glibmm-3de5a13f4f6863b669a793373a4cf89b99a956e0.tar.gz |
Application: Pass 0 (NULL) rather than to GApplication.
* gio/src/application.ccg: It is annoying that GApplication (and other
C code) distinguishes, of course.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | gio/src/application.ccg | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,10 @@ +2012-05-28 Murray Cumming <murrayc@murrayc.com> + + Application: Pass 0 (NULL) rather than "" to GApplication. + + * gio/src/application.ccg: It is annoying that GApplication (and other + C code) distinguishes, of course. + 2012-05-27 Murray Cumming <murrayc@murrayc.com> Gio::Application: Allow the application ID to be empty. diff --git a/gio/src/application.ccg b/gio/src/application.ccg index 2942d75a..8913b5ff 100644 --- a/gio/src/application.ccg +++ b/gio/src/application.ccg @@ -116,7 +116,7 @@ Application::Application(const Glib::ustring& application_id, ApplicationFlags f : // Mark this class as non-derived to allow C++ vfuncs to be skipped. Glib::ObjectBase(0), - Glib::Object(Glib::ConstructParams(custom_class_init(), "application_id", application_id.c_str(), "flags", ((GApplicationFlags)(flags)), static_cast<char*>(0))) + Glib::Object(Glib::ConstructParams(custom_class_init(), "application_id", (application_id.empty() ? 0 : application_id.c_str()), "flags", ((GApplicationFlags)(flags)), static_cast<char*>(0))) { } |