diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-29 21:59:28 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-10-05 13:28:21 +0200 |
commit | 18744f661be29d5f41421c5b71b2434097e8ef4c (patch) | |
tree | fe7e3398feb17946356bb315ff85dcc576491d97 | |
parent | b3d61e7991192986dcd7103d3c86ee50f8425504 (diff) |
help gcc 4.6.1 out with ambiguity
-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 68bb949a54..e662f6ef91 100644 --- a/vcl/unx/gtk/a11y/atkutil.cxx +++ b/vcl/unx/gtk/a11y/atkutil.cxx @@ -312,8 +312,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)); |