help gcc 4.6.1 out with ambiguity

This commit is contained in:
Caolán McNamara
2011-09-29 21:59:28 +01:00
parent 6fed5b8385
commit 350e1e2456

View File

@@ -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));