summaryrefslogtreecommitdiff
path: root/gio/src/application.hg
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2019-01-14 11:42:06 +0000
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2019-01-14 11:42:06 +0000
commit5bd335012b32cdc96ba9705a0684d4cee42edcdb (patch)
tree16dd7d902efa26519127be8670a84b8ea459cef6 /gio/src/application.hg
parent2b2bec8a8164921f233dbfe4e25c4e4a93e93f10 (diff)
parente2ff5614574d48fe2862e86c8e60402a60e25f6a (diff)
downloadglibmm-5bd335012b32cdc96ba9705a0684d4cee42edcdb.tar.gz
Merge branch 'func-arg-init' into 'master'
Use {} for function arguments initialisation See merge request GNOME/glibmm!9
Diffstat (limited to 'gio/src/application.hg')
-rw-r--r--gio/src/application.hg20
1 files changed, 10 insertions, 10 deletions
diff --git a/gio/src/application.hg b/gio/src/application.hg
index 584305b7..9d54bdbe 100644
--- a/gio/src/application.hg
+++ b/gio/src/application.hg
@@ -98,7 +98,7 @@ protected:
* @param application_id The application ID.
* @param flags The application flags.
*/
- explicit Application(const Glib::ustring& application_id = Glib::ustring(), Flags flags = Flags::NONE);
+ explicit Application(const Glib::ustring& application_id = {}, Flags flags = Flags::NONE);
_IGNORE(g_application_new)
public:
@@ -139,7 +139,7 @@ public:
* @param application_id The application ID.
* @param flags The application flags.
*/
- _WRAP_CREATE(const Glib::ustring& application_id = Glib::ustring(), Flags flags = Flags::NONE)
+ _WRAP_CREATE(const Glib::ustring& application_id = {}, Flags flags = Flags::NONE)
_WRAP_METHOD(static bool id_is_valid(const Glib::ustring& application_id), g_application_id_is_valid)
@@ -233,8 +233,8 @@ public:
* Character encoding is chosen with @a arg_type.
*/
void add_main_option_entry(OptionType arg_type, const Glib::ustring& long_name,
- gchar short_name = '\0', const Glib::ustring& description = Glib::ustring(),
- const Glib::ustring& arg_description = Glib::ustring(),
+ gchar short_name = '\0', const Glib::ustring& description = {},
+ const Glib::ustring& arg_description = {},
Glib::OptionEntry::Flags flags = Glib::OptionEntry::Flags::NONE);
_IGNORE(g_application_add_main_option_entries, g_application_add_main_option)
@@ -255,8 +255,8 @@ public:
*/
void add_main_option_entry(const Glib::OptionGroup::SlotOptionArgString& slot,
const Glib::ustring& long_name,
- gchar short_name = '\0', const Glib::ustring& description = Glib::ustring(),
- const Glib::ustring& arg_description = Glib::ustring(),
+ gchar short_name = '\0', const Glib::ustring& description = {},
+ const Glib::ustring& arg_description = {},
Glib::OptionEntry::Flags flags = Glib::OptionEntry::Flags::NONE);
/** Adds a main option entry to be handled by the Application.
@@ -276,8 +276,8 @@ public:
*/
void add_main_option_entry_filename(const Glib::OptionGroup::SlotOptionArgFilename& slot,
const Glib::ustring& long_name,
- gchar short_name = '\0', const Glib::ustring& description = Glib::ustring(),
- const Glib::ustring& arg_description = Glib::ustring(),
+ gchar short_name = '\0', const Glib::ustring& description = {},
+ const Glib::ustring& arg_description = {},
Glib::OptionEntry::Flags flags = Glib::OptionEntry::Flags::NONE);
// _WRAP_METHOD(void add_option_group(Glib::OptionGroup& group), g_application_add_option_group)
@@ -319,7 +319,7 @@ public:
*
* @newin{2,32}
*/
- void open(const type_vec_files& files, const Glib::ustring& hint = Glib::ustring());
+ void open(const type_vec_files& files, const Glib::ustring& hint = {});
_IGNORE(g_application_open)
/* Opens the given file.
@@ -339,7 +339,7 @@ public:
*
* @newin{2,32}
*/
- void open(const Glib::RefPtr<Gio::File>& file, const Glib::ustring& hint = Glib::ustring());
+ void open(const Glib::RefPtr<Gio::File>& file, const Glib::ustring& hint = {});
_WRAP_METHOD(int run(int argc, char** argv), g_application_run)