diff options
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/dlgprov/dlgprov.cxx | 4 | ||||
-rw-r--r-- | scripting/source/stringresource/stringresource.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/scripting/source/dlgprov/dlgprov.cxx b/scripting/source/dlgprov/dlgprov.cxx index 8e447d5230c4..6367e2cbfd9c 100644 --- a/scripting/source/dlgprov/dlgprov.cxx +++ b/scripting/source/dlgprov/dlgprov.cxx @@ -539,11 +539,11 @@ static OUString aResourceResolverPropName("ResourceResolver"); Reference< XInterface >* pObjects = aObjects.getArray(); for ( sal_Int32 i = 0; i < nControlCount; ++i ) { - pObjects[i] = pControls[i]; + pObjects[i] = Reference<XInterface>( pControls[i], UNO_QUERY ); } // also add the dialog control itself to the sequence - pObjects[nControlCount] = rxControl; + pObjects[nControlCount] = Reference<XInterface>( rxControl, UNO_QUERY ); Reference< XScriptEventsAttacher > xScriptEventsAttacher = new DialogEventsAttacherImpl ( m_xContext, m_xModel, rxControl, rxHandler, rxIntrospectionAccess, diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx index c0b2e71b6d0f..3bf5a434b1ee 100644 --- a/scripting/source/stringresource/stringresource.cxx +++ b/scripting/source/stringresource/stringresource.cxx @@ -158,7 +158,7 @@ void StringResourceImpl::addModifyListener( const Reference< XModifyListener >& throw RuntimeException(); ::osl::MutexGuard aGuard( getMutex() ); - m_aListenerContainer.addInterface( aListener ); + m_aListenerContainer.addInterface( Reference<XInterface>( aListener, UNO_QUERY ) ); } void StringResourceImpl::removeModifyListener( const Reference< XModifyListener >& aListener ) @@ -168,7 +168,7 @@ void StringResourceImpl::removeModifyListener( const Reference< XModifyListener throw RuntimeException(); ::osl::MutexGuard aGuard( getMutex() ); - m_aListenerContainer.removeInterface( aListener ); + m_aListenerContainer.removeInterface( Reference<XInterface>( aListener, UNO_QUERY ) ); } |