elementary: refactor elm_atspi_bridge function
authorBruno Dilly <bdilly@profusion.mobi>
Wed, 28 Sep 2016 21:23:05 +0000 (18:23 -0300)
committerBruno Dilly <bdilly@profusion.mobi>
Wed, 28 Sep 2016 21:23:05 +0000 (18:23 -0300)
commiteeed0086eda16bdf4974392a80d9243defcc9831
treed91f4ef0e0490ad16599fdbf632e2f4ffa327bf5
parent245d69b48081c575f51c3c272d67d7aa4db88cbf
elementary: refactor elm_atspi_bridge function

In order to avoid the following build warning:

lib/elementary/elm_atspi_bridge.c: In function
  ‘_children_changed_signal_send’:
lib/elementary/elm_atspi_bridge.c:3971:4: warning: ‘idx’ may
  be used uninitialized in this function [-Wmaybe-uninitialized]
    _bridge_signal_send(data, event->object, ATSPI_DBUS_INTERFACE_EVENT_OBJECT

A little refactoring was done to function _children_changed_signal_send.
Actually I wasn't able to see a codepath to use idx unintialized,
but this way is more clear and avoid compiler possible confusion.
src/lib/elementary/elm_atspi_bridge.c