summaryrefslogtreecommitdiff
path: root/comphelper/source/eventattachermgr/eventattachermgr.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-09 21:10:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-09 22:04:31 +0000
commitd22519f62bcd1325f1e7cc920a115b68fccd1922 (patch)
tree3b761a7f8c25f8f765c8d25662a803e47b5a7167 /comphelper/source/eventattachermgr/eventattachermgr.cxx
parentd44168795aed842d524e3a349962f2b98a8ac504 (diff)
V801: Decreased performance
Change-Id: Id8cd45d2844c121f63684734ab3546c24a1aab32
Diffstat (limited to 'comphelper/source/eventattachermgr/eventattachermgr.cxx')
-rw-r--r--comphelper/source/eventattachermgr/eventattachermgr.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/comphelper/source/eventattachermgr/eventattachermgr.cxx b/comphelper/source/eventattachermgr/eventattachermgr.cxx
index 1b5c22816bf5..212af0cc2a16 100644
--- a/comphelper/source/eventattachermgr/eventattachermgr.cxx
+++ b/comphelper/source/eventattachermgr/eventattachermgr.cxx
@@ -92,7 +92,7 @@ class ImplEventAttacherManager
sal_Int16 nVersion;
public:
ImplEventAttacherManager( const Reference< XIntrospection > & rIntrospection,
- const Reference< XComponentContext > xContext );
+ const Reference< XComponentContext >& rContext );
virtual ~ImplEventAttacherManager();
// Methods of XEventAttacherManager
@@ -358,21 +358,21 @@ Reference< XEventAttacherManager > createEventAttacherManager( const Reference<
ImplEventAttacherManager::ImplEventAttacherManager( const Reference< XIntrospection > & rIntrospection,
- const Reference< XComponentContext > xContext )
+ const Reference< XComponentContext >& rContext )
: aScriptListeners( aLock )
- , mxContext( xContext )
+ , mxContext( rContext )
, mxIntrospection( rIntrospection )
, nVersion(0)
{
- if ( xContext.is() )
+ if ( rContext.is() )
{
- Reference< XInterface > xIFace( xContext->getServiceManager()->createInstanceWithContext(
- OUString( "com.sun.star.script.EventAttacher" ), xContext) );
+ Reference< XInterface > xIFace( rContext->getServiceManager()->createInstanceWithContext(
+ OUString( "com.sun.star.script.EventAttacher" ), rContext) );
if ( xIFace.is() )
{
xAttacher = Reference< XEventAttacher2 >::query( xIFace );
}
- xConverter = Converter::create(xContext);
+ xConverter = Converter::create(rContext);
}
Reference< XInitialization > xInit( xAttacher, UNO_QUERY );