summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-07-07 15:55:47 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-07 18:59:55 +0200
commit0b424c25066cc9c9bc7f72ce56096933eee6feab (patch)
tree354668273eb8d59cd0cc7fb90be0a8f6472bc35f /basic
parent580c0f5ede31ae497a9fe86790a142a5bce63e69 (diff)
loplugin:passstuffbyref also for {css::uno,rtl}::Reference
Change-Id: I614d91e7e4a686613dc0cbe1b9f4fabb978ffc77
Diffstat (limited to 'basic')
-rw-r--r--basic/source/basmgr/basmgr.cxx4
-rw-r--r--basic/source/classes/sbunoobj.cxx4
-rw-r--r--basic/source/inc/namecont.hxx2
-rw-r--r--basic/source/inc/sbunoobj.hxx4
-rw-r--r--basic/source/uno/namecont.cxx2
5 files changed, 8 insertions, 8 deletions
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx
index aeba2e6d73b3..514b4743da31 100644
--- a/basic/source/basmgr/basmgr.cxx
+++ b/basic/source/basmgr/basmgr.cxx
@@ -1703,8 +1703,8 @@ public:
LibraryInfo_Impl
(
const OUString& aName,
- uno::Reference< container::XNameContainer > xModuleContainer,
- uno::Reference< container::XNameContainer > xDialogContainer,
+ uno::Reference< container::XNameContainer > const & xModuleContainer,
+ uno::Reference< container::XNameContainer > const & xDialogContainer,
const OUString& aPassword,
const OUString& aExternaleSourceURL,
const OUString& aLinkTargetURL
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx
index cc1b6aa9706f..370ae2018a4e 100644
--- a/basic/source/classes/sbunoobj.cxx
+++ b/basic/source/classes/sbunoobj.cxx
@@ -2501,7 +2501,7 @@ SbUnoMethod::SbUnoMethod
(
const OUString& aName_,
SbxDataType eSbxType,
- Reference< XIdlMethod > xUnoMethod_,
+ Reference< XIdlMethod > const & xUnoMethod_,
bool bInvocation
)
: SbxMethod( aName_, eSbxType )
@@ -3722,7 +3722,7 @@ void clearUnoServiceCtors()
}
}
-SbUnoServiceCtor::SbUnoServiceCtor( const OUString& aName_, Reference< XServiceConstructorDescription > xServiceCtorDesc )
+SbUnoServiceCtor::SbUnoServiceCtor( const OUString& aName_, Reference< XServiceConstructorDescription > const & xServiceCtorDesc )
: SbxMethod( aName_, SbxOBJECT )
, m_xServiceCtorDesc( xServiceCtorDesc )
, pNext(nullptr)
diff --git a/basic/source/inc/namecont.hxx b/basic/source/inc/namecont.hxx
index 3166b878fb0d..0a342c33ab41 100644
--- a/basic/source/inc/namecont.hxx
+++ b/basic/source/inc/namecont.hxx
@@ -718,7 +718,7 @@ class ScriptSubPackageIterator
< css::deployment::XPackage >& rPackage, bool& rbPureDialogLib );
public:
- ScriptSubPackageIterator( css::uno::Reference< css::deployment::XPackage > xMainPackage );
+ ScriptSubPackageIterator( css::uno::Reference< css::deployment::XPackage > const & xMainPackage );
css::uno::Reference< css::deployment::XPackage > getNextScriptSubPackage( bool& rbPureDialogLib );
};
diff --git a/basic/source/inc/sbunoobj.hxx b/basic/source/inc/sbunoobj.hxx
index 296940da4a8b..7e88e5602f9c 100644
--- a/basic/source/inc/sbunoobj.hxx
+++ b/basic/source/inc/sbunoobj.hxx
@@ -164,7 +164,7 @@ class SbUnoMethod : public SbxMethod
public:
- SbUnoMethod( const OUString& aName_, SbxDataType eSbxType, css::uno::Reference< css::reflection::XIdlMethod > xUnoMethod_,
+ SbUnoMethod( const OUString& aName_, SbxDataType eSbxType, css::uno::Reference< css::reflection::XIdlMethod > const & xUnoMethod_,
bool bInvocation );
virtual ~SbUnoMethod();
virtual SbxInfo* GetInfo() override;
@@ -272,7 +272,7 @@ class SbUnoServiceCtor : public SbxMethod
public:
- SbUnoServiceCtor( const OUString& aName_, css::uno::Reference< css::reflection::XServiceConstructorDescription > xServiceCtorDesc );
+ SbUnoServiceCtor( const OUString& aName_, css::uno::Reference< css::reflection::XServiceConstructorDescription > const & xServiceCtorDesc );
virtual ~SbUnoServiceCtor();
virtual SbxInfo* GetInfo() override;
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx
index 1d766f64af66..c50d460611ab 100644
--- a/basic/source/uno/namecont.cxx
+++ b/basic/source/uno/namecont.cxx
@@ -3355,7 +3355,7 @@ OUString ScriptExtensionIterator::nextBasicOrDialogLibrary( bool& rbPureDialogLi
return aRetLib;
}
-ScriptSubPackageIterator::ScriptSubPackageIterator( Reference< deployment::XPackage > xMainPackage )
+ScriptSubPackageIterator::ScriptSubPackageIterator( Reference< deployment::XPackage > const & xMainPackage )
: m_xMainPackage( xMainPackage )
, m_bIsValid( false )
, m_bIsBundle( false )