[glibmm/refptr_as_sharedptr] glibmm_weakref: fix get()
- From: Marcin Kolny <mkolny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/refptr_as_sharedptr] glibmm_weakref: fix get()
- Date: Sun, 10 Apr 2016 15:27:52 +0000 (UTC)
commit 5bc5036f49fe2b15f4fc823194db13cdb207cda7
Author: Marcin Kolny <marcin kolny gmail com>
Date: Sun Apr 10 17:27:27 2016 +0200
glibmm_weakref: fix get()
glib/glibmm/weakref.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/glibmm/weakref.h b/glib/glibmm/weakref.h
index 99d6c66..b03c327 100644
--- a/glib/glibmm/weakref.h
+++ b/glib/glibmm/weakref.h
@@ -354,7 +354,7 @@ WeakRef<T_CppObject>::get() const noexcept
// A RefPtr constructed from pointer expects reference to be done externally.
pCppObject_->reference();
- ret = RefPtr<T_CppObject>(pCppObject_);
+ ret = make_refptr_for_instance<T_CppObject>(pCppObject_);
g_object_unref(ptr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]