[glibmm/refptr_as_sharedptr_v2: 5/5] glibmm_weakref: fix get()



commit 89deff630c0d3fe37a8d64abfde295c916e3191f
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]