[glibmm/glibmm-2-36] ByteArray: Fix refcount problems.
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/glibmm-2-36] ByteArray: Fix refcount problems.
- Date: Mon, 23 Sep 2013 06:05:32 +0000 (UTC)
commit 0a8aaa8cef1828fed833f6076a311ee5ecf4561d
Author: Krzesimir Nowak <qdlacz gmail com>
Date: Sun Sep 22 15:17:22 2013 +0200
ByteArray: Fix refcount problems.
* glib/src/bytearray.hg: Add refreturn to methods returning self.
glib/src/bytearray.hg | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/glib/src/bytearray.hg b/glib/src/bytearray.hg
index 48fc2dc..200b151 100644
--- a/glib/src/bytearray.hg
+++ b/glib/src/bytearray.hg
@@ -55,8 +55,8 @@ public:
_WRAP_METHOD(static Glib::RefPtr<ByteArray> create(), g_byte_array_new)
- _WRAP_METHOD(Glib::RefPtr<ByteArray> append(const guint8* data, guint len), g_byte_array_append)
- _WRAP_METHOD(Glib::RefPtr<ByteArray> prepend(const guint8* data, guint len), g_byte_array_prepend)
+ _WRAP_METHOD(Glib::RefPtr<ByteArray> append(const guint8* data, guint len), g_byte_array_append, refreturn)
+ _WRAP_METHOD(Glib::RefPtr<ByteArray> prepend(const guint8* data, guint len), g_byte_array_prepend,
refreturn)
/** Gets the size of the byte array.
* @return The size.
@@ -76,14 +76,14 @@ public:
*/
const guint8* get_data() const;
- _WRAP_METHOD(Glib::RefPtr<ByteArray> remove_index(guint index_), g_byte_array_remove_index)
- _WRAP_METHOD(Glib::RefPtr<ByteArray> remove_index_fast(guint index_), g_byte_array_remove_index_fast)
- _WRAP_METHOD(Glib::RefPtr<ByteArray> remove_range(guint index_, guint length), g_byte_array_remove_range)
+ _WRAP_METHOD(Glib::RefPtr<ByteArray> remove_index(guint index_), g_byte_array_remove_index, refreturn)
+ _WRAP_METHOD(Glib::RefPtr<ByteArray> remove_index_fast(guint index_), g_byte_array_remove_index_fast,
refreturn)
+ _WRAP_METHOD(Glib::RefPtr<ByteArray> remove_range(guint index_, guint length), g_byte_array_remove_range,
refreturn)
_WRAP_METHOD(void sort(const SlotCompare& slot), g_byte_array_sort_with_data, slot_name slot,
slot_callback ByteArray_Compare_Data_Func, no_slot_copy)
_IGNORE(g_byte_array_sort)
- _WRAP_METHOD(Glib::RefPtr<ByteArray> set_size(guint length), g_byte_array_set_size)
+ _WRAP_METHOD(Glib::RefPtr<ByteArray> set_size(guint length), g_byte_array_set_size, refreturn)
#ifndef DOXYGEN_SHOULD_SKIP_THIS
static GType get_type() G_GNUC_CONST;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]