summaryrefslogtreecommitdiff
path: root/glib/src/module.ccg
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2022-12-21 16:32:18 +0100
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2022-12-21 16:32:18 +0100
commit7ef955bdd412b544e3176ff50f6b95096a91839b (patch)
tree4ceb0d9dd701b523c411f1c92f752b76efff5841 /glib/src/module.ccg
parenta31a114cd2185bb725d75e456d04f03ac8fe7036 (diff)
downloadglibmm-7ef955bdd412b544e3176ff50f6b95096a91839b.tar.gz
Glib::Module: Deprecate build_path()
and update the constructor's documentation.
Diffstat (limited to 'glib/src/module.ccg')
-rw-r--r--glib/src/module.ccg2
1 files changed, 1 insertions, 1 deletions
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))
{
}