summaryrefslogtreecommitdiff
path: root/gio/src/application.ccg
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjell.ahlstedt@bredband.net>2016-01-21 18:13:42 +0100
committerKjell Ahlstedt <kjell.ahlstedt@bredband.net>2016-01-21 18:13:42 +0100
commit329d9fc023cd69ae9ef9c510f7ac025479d75ebe (patch)
treeb6c0661a12fd815ed645f43d4863fa71b4f5724f /gio/src/application.ccg
parentd00ee0394d76251113e00a86fa40fc7071e0c1e1 (diff)
downloadglibmm-329d9fc023cd69ae9ef9c510f7ac025479d75ebe.tar.gz
Use Glib::c_str_or_nullptr()
Use Glib::c_str_or_nullptr(s) instead of s.empty() ? nullptr : s.c_str().
Diffstat (limited to 'gio/src/application.ccg')
-rw-r--r--gio/src/application.ccg2
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/src/application.ccg b/gio/src/application.ccg
index c7488acc..5331887d 100644
--- a/gio/src/application.ccg
+++ b/gio/src/application.ccg
@@ -272,7 +272,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(nullptr),
Glib::Object(Glib::ConstructParams(custom_class_init(), "application_id",
- (application_id.empty() ? nullptr : application_id.c_str()),
+ Glib::c_str_or_nullptr(application_id),
"flags", ((GApplicationFlags)(flags)), nullptr))
{