summaryrefslogtreecommitdiff
path: root/scripting/source/stringresource/stringresource.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'scripting/source/stringresource/stringresource.cxx')
-rw-r--r--scripting/source/stringresource/stringresource.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx
index 689f6f7b4c4b..8d8bade1601d 100644
--- a/scripting/source/stringresource/stringresource.cxx
+++ b/scripting/source/stringresource/stringresource.cxx
@@ -163,8 +163,7 @@ void StringResourceImpl::addModifyListener( const Reference< XModifyListener >&
throw RuntimeException();
::osl::MutexGuard aGuard( getMutex() );
- Reference< XInterface > xIface( aListener, UNO_QUERY );
- m_aListenerContainer.addInterface( xIface );
+ m_aListenerContainer.addInterface( aListener );
}
void StringResourceImpl::removeModifyListener( const Reference< XModifyListener >& aListener )
@@ -174,8 +173,7 @@ void StringResourceImpl::removeModifyListener( const Reference< XModifyListener
throw RuntimeException();
::osl::MutexGuard aGuard( getMutex() );
- Reference< XInterface > xIface( aListener, UNO_QUERY );
- m_aListenerContainer.removeInterface( xIface );
+ m_aListenerContainer.removeInterface( aListener );
}