[gtkmm] FlowBox, ListBox: Remove unnecessary static cast.



commit a1a75cff258797e61885a32600e13a9ffb282907
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Dec 9 14:08:10 2016 +0100

    FlowBox, ListBox: Remove unnecessary static cast.

 gtk/src/flowbox.hg |    2 +-
 gtk/src/listbox.hg |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/src/flowbox.hg b/gtk/src/flowbox.hg
index a09242a..ea8bf6f 100644
--- a/gtk/src/flowbox.hg
+++ b/gtk/src/flowbox.hg
@@ -319,7 +319,7 @@ void FlowBox::bind_list_store(const Glib::RefPtr<Gio::ListStore<T_item>>& store,
   auto slot_copy = new SlotCreateWidget<T_item>(std::forward<T_slot>(slot_create_widget));
 
   gtk_flow_box_bind_model(gobj(),
-    Glib::unwrap(Glib::RefPtr<Gio::ListModel>::cast_static(store)),
+    Glib::unwrap(store),
     &proxy_bind_list_store_create_widget_callback<T_item>,
     slot_copy, &Glib::destroy_notify_delete<SlotCreateWidget<T_item>>);
 }
diff --git a/gtk/src/listbox.hg b/gtk/src/listbox.hg
index 0409c29..8858434 100644
--- a/gtk/src/listbox.hg
+++ b/gtk/src/listbox.hg
@@ -349,7 +349,7 @@ void ListBox::bind_list_store(const Glib::RefPtr<Gio::ListStore<T_item>>& store,
   auto slot_copy = new SlotCreateWidget<T_item>(std::forward<T_slot>(slot_create_widget));
 
   gtk_list_box_bind_model(gobj(),
-    Glib::unwrap(Glib::RefPtr<Gio::ListModel>::cast_static(store)),
+    Glib::unwrap(store),
     &proxy_bind_list_store_create_widget_callback<T_item>,
     slot_copy, &Glib::destroy_notify_delete<SlotCreateWidget<T_item>>);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]