[gstreamermm] MiniObject: Make the constructors and destructor protected.
- From: José Alburquerque <jaalburqu src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gstreamermm] MiniObject: Make the constructors and destructor protected.
- Date: Fri, 23 Oct 2009 17:25:46 +0000 (UTC)
commit 4c9c846d12d31a2ad92dcb7698a9e92625b1916b
Author: José Alburquerque <jaalburqu svn gnome org>
Date: Fri Oct 23 13:21:25 2009 -0400
MiniObject: Make the constructors and destructor protected.
* gstreamer/gstreamermm/miniobject.h: Make the constructors and
destructor protected as is done in Glib::Object.
ChangeLog | 7 +++++++
gstreamer/gstreamermm/miniobject.h | 21 +++++++++------------
2 files changed, 16 insertions(+), 12 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c2516e5..76c96a7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-10-23 José Alburquerque <jaalburqu svn gnome org>
+
+ MiniObject: Make the constructors and destructor protected.
+
+ * gstreamer/gstreamermm/miniobject.h: Make the constructors and
+ destructor protected as is done in Glib::Object.
+
2009-10-22 José Alburquerque <jaalburqu svn gnome org>
Make sure the MiniObject type is registered in the GType system.
diff --git a/gstreamer/gstreamermm/miniobject.h b/gstreamer/gstreamermm/miniobject.h
index 6495d88..49cd334 100644
--- a/gstreamer/gstreamermm/miniobject.h
+++ b/gstreamer/gstreamermm/miniobject.h
@@ -47,29 +47,26 @@ private:
friend class MiniObject_Class;
static CppClassType mini_object_class_;
-//protected:
-public:
- MiniObject();
- MiniObject(GstMiniObject* castitem, bool take_copy = false);
+ // noncopyable
+ MiniObject(const MiniObject&);
+ MiniObject& operator=(const MiniObject&);
-public:
+protected:
+ MiniObject();
+ explicit MiniObject(GstMiniObject* castitem, bool take_copy = false);
virtual ~MiniObject();
- #ifndef DOXYGEN_SHOULD_SKIP_THIS
+public:
+#ifndef DOXYGEN_SHOULD_SKIP_THIS
static GType get_type() G_GNUC_CONST;
static GType get_base_type() G_GNUC_CONST;
#endif
+public:
//Note that we don't add a constructor for gst_mini_object_new()
//because it's just an equivalent for g_object_new(),
//which is just an equivalent for C++'s new().
-private:
- // noncopyable
- MiniObject(const MiniObject&);
- MiniObject& operator=(const MiniObject&);
-
-public:
/** Returns the entire set of flags for the mini-object.
* @return The Gst::MiniObject flags.
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]