diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-29 21:59:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-30 09:09:26 +0100 |
commit | 350e1e245643e107b6e46b2de3dc73906ab844a5 (patch) | |
tree | 36b580642f206231599b2a7ac4f2f49c598c3895 /vcl | |
parent | 6fed5b838534c5aa01351bc85ebd6ab511ffd30d (diff) |
help gcc 4.6.1 out with ambiguity
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk/a11y/atkutil.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vcl/unx/gtk/a11y/atkutil.cxx b/vcl/unx/gtk/a11y/atkutil.cxx index 8514e4417ca3..d3d9824dcc82 100644 --- a/vcl/unx/gtk/a11y/atkutil.cxx +++ b/vcl/unx/gtk/a11y/atkutil.cxx @@ -318,8 +318,12 @@ void DocumentFocusListener::attachRecursive( uno::Reference< accessibility::XAccessibleEventBroadcaster > xBroadcaster = uno::Reference< accessibility::XAccessibleEventBroadcaster >(xContext, uno::UNO_QUERY); + if (!xBroadcaster.is()) + return; + // If not already done, add the broadcaster to the list and attach as listener. - if( xBroadcaster.is() && m_aRefList.insert(xBroadcaster).second ) + uno::Reference< uno::XInterface > xInterface = xBroadcaster; + if( m_aRefList.insert(xInterface).second ) { xBroadcaster->addEventListener(static_cast< accessibility::XAccessibleEventListener *>(this)); |