diff options
Diffstat (limited to 'stoc/source')
-rw-r--r-- | stoc/source/inspect/introspection.cxx | 2 | ||||
-rw-r--r-- | stoc/source/invocation/invocation.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/stoc/source/inspect/introspection.cxx b/stoc/source/inspect/introspection.cxx index 1fff94f60b11..c755eef4e90b 100644 --- a/stoc/source/inspect/introspection.cxx +++ b/stoc/source/inspect/introspection.cxx @@ -96,7 +96,7 @@ typedef WeakImplHelper< XIntrospectionAccess, XMaterialHolder, XExactName, // Method to assert, if a class is derived from another class -bool isDerivedFrom( Reference<XIdlClass> xToTestClass, Reference<XIdlClass> xDerivedFromClass ) +bool isDerivedFrom( const Reference<XIdlClass>& xToTestClass, const Reference<XIdlClass>& xDerivedFromClass ) { Sequence< Reference<XIdlClass> > aClassesSeq = xToTestClass->getSuperclasses(); const Reference<XIdlClass>* pClassesArray = aClassesSeq.getConstArray(); diff --git a/stoc/source/invocation/invocation.cxx b/stoc/source/invocation/invocation.cxx index 9f2c4c0fc06d..370478f2a470 100644 --- a/stoc/source/invocation/invocation.cxx +++ b/stoc/source/invocation/invocation.cxx @@ -204,7 +204,7 @@ private: void getInfoSequenceImpl( Sequence< OUString >* pStringSeq, Sequence< InvocationInfo >* pInfoSeq ); void fillInfoForNameAccess( InvocationInfo& rInfo, const OUString& aName ); static void fillInfoForProperty( InvocationInfo& rInfo, const Property& rProp ); - static void fillInfoForMethod( InvocationInfo& rInfo, const Reference< XIdlMethod > xMethod ); + static void fillInfoForMethod( InvocationInfo& rInfo, const Reference< XIdlMethod >& xMethod ); Reference<XTypeConverter> xTypeConverter; Reference<XIntrospection> xIntrospection; @@ -960,7 +960,7 @@ void Invocation_Impl::fillInfoForProperty void Invocation_Impl::fillInfoForMethod ( InvocationInfo& rInfo, - const Reference< XIdlMethod > xMethod + const Reference< XIdlMethod >& xMethod ) { rInfo.aName = xMethod->getName(); |