diff options
Diffstat (limited to 'basic/source/uno/namecont.cxx')
-rw-r--r-- | basic/source/uno/namecont.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index 49be779952c0..71af61e43a24 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -298,7 +298,7 @@ void SAL_CALL NameContainer::addContainerListener( const Reference< XContainerLi throw RuntimeException("addContainerListener called with null xListener", static_cast< cppu::OWeakObject * >(this)); } - maContainerListeners.addInterface( xListener ); + maContainerListeners.addInterface( Reference<XInterface>(xListener, UNO_QUERY) ); } void SAL_CALL NameContainer::removeContainerListener( const Reference< XContainerListener >& xListener ) @@ -308,7 +308,7 @@ void SAL_CALL NameContainer::removeContainerListener( const Reference< XContaine { throw RuntimeException(); } - maContainerListeners.removeInterface( xListener ); + maContainerListeners.removeInterface( Reference<XInterface>(xListener, UNO_QUERY) ); } // Methods XChangesNotifier @@ -319,7 +319,7 @@ void SAL_CALL NameContainer::addChangesListener( const Reference< XChangesListen { throw RuntimeException(); } - maChangesListeners.addInterface( xListener ); + maChangesListeners.addInterface( Reference<XInterface>(xListener, UNO_QUERY) ); } void SAL_CALL NameContainer::removeChangesListener( const Reference< XChangesListener >& xListener ) @@ -329,7 +329,7 @@ void SAL_CALL NameContainer::removeChangesListener( const Reference< XChangesLis { throw RuntimeException(); } - maChangesListeners.removeInterface( xListener ); + maChangesListeners.removeInterface( Reference<XInterface>(xListener, UNO_QUERY) ); } @@ -2988,7 +2988,7 @@ void SAL_CALL SfxLibraryContainer::broadcastVBAScriptEvent( sal_Int32 nIdentifie leaveMethod(); Reference< XModel > xModel = mxOwnerDocument; // weak-ref -> ref - vba::VBAScriptEvent aEvent( xModel, nIdentifier, rModuleName ); + vba::VBAScriptEvent aEvent( Reference<XInterface>(xModel, UNO_QUERY), nIdentifier, rModuleName ); maVBAScriptListeners.notify( aEvent ); } |