diff options
Diffstat (limited to 'glib/glibmm/object.h')
-rw-r--r-- | glib/glibmm/object.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glib/glibmm/object.h b/glib/glibmm/object.h index 3ff39b03..9b4dda29 100644 --- a/glib/glibmm/object.h +++ b/glib/glibmm/object.h @@ -186,7 +186,7 @@ struct TypeTraits<Glib::RefPtr<T>> // because that would be "dependent", and g++ 3.4 does not allow that. // The specific Glib::wrap() overloads don't do anything special anyway. GObject* cobj = (GObject*)const_cast<CTypeNonConst>(ptr); - return Glib::RefPtr<T>(dynamic_cast<T*>(Glib::wrap_auto(cobj, true /* take_copy */))); + return Glib::make_refptr_for_instance<T>(dynamic_cast<T*>(Glib::wrap_auto(cobj, true /* take_copy */))); // We use dynamic_cast<> in case of multiple inheritance. } @@ -222,7 +222,7 @@ struct TypeTraits<Glib::RefPtr<const T>> // because that would be "dependent", and g++ 3.4 does not allow that. // The specific Glib::wrap() overloads don't do anything special anyway. GObject* cobj = (GObject*)(ptr); - return Glib::RefPtr<const T>( + return Glib::make_refptr_for_instance<const T>( dynamic_cast<const T*>(Glib::wrap_auto(cobj, true /* take_copy */))); // We use dynamic_cast<> in case of multiple inheritance. } |