From 7ef955bdd412b544e3176ff50f6b95096a91839b Mon Sep 17 00:00:00 2001 From: Kjell Ahlstedt Date: Wed, 21 Dec 2022 16:32:18 +0100 Subject: Glib::Module: Deprecate build_path() and update the constructor's documentation. --- glib/src/module.ccg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'glib/src/module.ccg') diff --git a/glib/src/module.ccg b/glib/src/module.ccg index 6322cae9..c9995a3f 100644 --- a/glib/src/module.ccg +++ b/glib/src/module.ccg @@ -21,7 +21,7 @@ namespace Glib { Module::Module(const std::string& file_name, Flags flags) -: gobject_(g_module_open(file_name.c_str(), (GModuleFlags)flags)) +: gobject_(g_module_open(file_name.empty() ? nullptr : file_name.c_str(), (GModuleFlags)flags)) { } -- cgit v1.2.1