[glibmm] Module: Change ModuleFlags to Module::Flags.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Module: Change ModuleFlags to Module::Flags.
- Date: Tue, 18 Apr 2017 20:05:00 +0000 (UTC)
commit f34711a6ef6bad22c4c408e9af696e7a5ac22af8
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Apr 18 20:04:46 2017 +0200
Module: Change ModuleFlags to Module::Flags.
glib/src/module.ccg | 2 +-
glib/src/module.hg | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/glib/src/module.ccg b/glib/src/module.ccg
index 2cf23fd..37ead86 100644
--- a/glib/src/module.ccg
+++ b/glib/src/module.ccg
@@ -21,7 +21,7 @@
namespace Glib
{
-Module::Module(const std::string& file_name, ModuleFlags flags)
+Module::Module(const std::string& file_name, Flags flags)
: gobject_(g_module_open(file_name.c_str(), (GModuleFlags)flags))
{
}
diff --git a/glib/src/module.hg b/glib/src/module.hg
index dddb524..bb6f428 100644
--- a/glib/src/module.hg
+++ b/glib/src/module.hg
@@ -26,8 +26,6 @@ extern "C" { typedef struct _GModule GModule; }
namespace Glib
{
-_WRAP_ENUM(ModuleFlags, GModuleFlags, NO_GTYPE)
-
//TODO: Replace get_last_error() with exceptions?
//Provide operator()?
@@ -45,6 +43,8 @@ class Module
public:
+ _WRAP_ENUM(Flags, GModuleFlags, NO_GTYPE)
+
/** Opens a module.
*
* First of all it tries to open file_name as a module. If that
@@ -69,7 +69,7 @@ public:
* @param file_name The library filename to open
* @param flags Flags to configure the load process
*/
- explicit Module(const std::string& file_name, ModuleFlags flags = ModuleFlags(0));
+ explicit Module(const std::string& file_name, Flags flags = Flags(0));
Module(const Module&) = delete;
Module& operator=(const Module&) = delete;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]