[beast/devel] BSE: fixed useless casts



commit b43bc2a30a35f0092c0c4cec12bcf828731f1aea
Author: Tim Janik <timj gnu org>
Date:   Sun Dec 23 23:00:11 2012 +0100

    BSE: fixed useless casts

 bse/bsemidinotifier.cc |    2 +-
 bse/bseobject.cc       |    3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/bse/bsemidinotifier.cc b/bse/bsemidinotifier.cc
index c4326e4..f9dd6fa 100644
--- a/bse/bsemidinotifier.cc
+++ b/bse/bsemidinotifier.cc
@@ -175,7 +175,7 @@ bse_midi_notifier_dispatch (BseMidiNotifier *self)
   if (!ring)
     return;
   uint need_emission = g_signal_handler_find (self,
-                                              GSignalMatchType (G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_UNBLOCKED),
+                                              G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_UNBLOCKED,
                                               signal_midi_event, 0, NULL, NULL, NULL);
   while (ring)
     {
diff --git a/bse/bseobject.cc b/bse/bseobject.cc
index 47e968a..06e5a25 100644
--- a/bse/bseobject.cc
+++ b/bse/bseobject.cc
@@ -659,8 +659,7 @@ bse_object_remove_reemit (gpointer     src_object,
 	    {
 	      g_hash_table_remove (eclosures_ht, e);
 	      g_signal_handlers_disconnect_matched (e->src_object,
-                                                    GSignalMatchType (G_SIGNAL_MATCH_CLOSURE |
-                                                                      G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_DETAIL),
+                                                    G_SIGNAL_MATCH_CLOSURE | G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_DETAIL,
 						    e->src_signal, e->src_detail,
 						    &e->closure, NULL, NULL);
 	      g_closure_invalidate (&e->closure);



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