diff options
Diffstat (limited to 'glib/glibmm/interface.h')
-rw-r--r-- | glib/glibmm/interface.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/glib/glibmm/interface.h b/glib/glibmm/interface.h index 06390441..0fc9ba62 100644 --- a/glib/glibmm/interface.h +++ b/glib/glibmm/interface.h @@ -32,7 +32,7 @@ class Interface_Class; #endif // There is no base GInterface struct in Glib, though there is G_TYPE_INTERFACE enum value. -class Interface : virtual public Glib::ObjectBase +class GLIBMM_API Interface : virtual public Glib::ObjectBase { public: #ifndef DOXYGEN_SHOULD_SKIP_THIS @@ -62,6 +62,10 @@ public: explicit Interface(GObject* castitem); virtual ~Interface(); + // noncopyable + Interface(const Interface&) = delete; + Interface& operator=(const Interface&) = delete; + //void add_interface(GType gtype_implementer); // Hook for translating API @@ -74,11 +78,6 @@ public: inline GObject* gobj() { return gobject_; } inline const GObject* gobj() const { return gobject_; } - -private: - // noncopyable - Interface(const Interface&); - Interface& operator=(const Interface&); }; RefPtr<ObjectBase> wrap_interface(GObject* object, bool take_copy = false); |