loplugin:passstuffbyref also for {css::uno,rtl}::Reference

Change-Id: I0d1ee65be8a3e4b01454dba34bbeb4de58744853
This commit is contained in:
Stephan Bergmann
2016-07-07 16:01:01 +02:00
parent 04aed0574f
commit da7259b584
3 changed files with 8 additions and 8 deletions

View File

@@ -123,7 +123,7 @@ Databases::Databases( bool showBasic,
const OUString& productName,
const OUString& productVersion,
const OUString& styleSheet,
Reference< uno::XComponentContext > xContext )
Reference< uno::XComponentContext > const & xContext )
: m_xContext( xContext ),
m_bShowBasic(showBasic),
m_nCustomCSSDocLength( 0 ),
@@ -1140,7 +1140,7 @@ void Databases::setInstallPath( const OUString& aInstDir )
ExtensionHelpExistanceMap ExtensionIteratorBase::aHelpExistanceMap;
ExtensionIteratorBase::ExtensionIteratorBase( Reference< XComponentContext > xContext,
ExtensionIteratorBase::ExtensionIteratorBase( Reference< XComponentContext > const & xContext,
Databases& rDatabases, const OUString& aInitialModule, const OUString& aLanguage )
: m_xContext( xContext )
, m_rDatabases( rDatabases )

View File

@@ -143,7 +143,7 @@ namespace chelp {
const OUString& productName,
const OUString& productVersion,
const OUString& styleSheet,
css::uno::Reference< css::uno::XComponentContext > xContext );
css::uno::Reference< css::uno::XComponentContext > const & xContext );
~Databases();
@@ -329,7 +329,7 @@ namespace chelp {
static ExtensionHelpExistanceMap aHelpExistanceMap;
public:
ExtensionIteratorBase( css::uno::Reference< css::uno::XComponentContext > xContext,
ExtensionIteratorBase( css::uno::Reference< css::uno::XComponentContext > const & xContext,
Databases& rDatabases, const OUString& aInitialModule, const OUString& aLanguage );
ExtensionIteratorBase( Databases& rDatabases, const OUString& aInitialModule,
const OUString& aLanguage );
@@ -382,7 +382,7 @@ namespace chelp {
class DataBaseIterator : public ExtensionIteratorBase
{
public:
DataBaseIterator( css::uno::Reference< css::uno::XComponentContext > xContext,
DataBaseIterator( css::uno::Reference< css::uno::XComponentContext > const & xContext,
Databases& rDatabases, const OUString& aInitialModule, const OUString& aLanguage, bool bHelpText )
: ExtensionIteratorBase( xContext, rDatabases, aInitialModule, aLanguage )
, m_bHelpText( bHelpText )
@@ -407,7 +407,7 @@ namespace chelp {
class KeyDataBaseFileIterator : public ExtensionIteratorBase
{
public:
KeyDataBaseFileIterator( css::uno::Reference< css::uno::XComponentContext > xContext,
KeyDataBaseFileIterator( css::uno::Reference< css::uno::XComponentContext > const & xContext,
Databases& rDatabases, const OUString& aInitialModule, const OUString& aLanguage )
: ExtensionIteratorBase( xContext, rDatabases, aInitialModule, aLanguage )
{}
@@ -423,7 +423,7 @@ namespace chelp {
class JarFileIterator : public ExtensionIteratorBase
{
public:
JarFileIterator( css::uno::Reference< css::uno::XComponentContext > xContext,
JarFileIterator( css::uno::Reference< css::uno::XComponentContext > const & xContext,
Databases& rDatabases, const OUString& aInitialModule, const OUString& aLanguage )
: ExtensionIteratorBase( xContext, rDatabases, aInitialModule, aLanguage )
{}

View File

@@ -74,7 +74,7 @@ namespace helpdatafileproxy {
//SimpleFileAccess requires file URLs as arguments. Passing file path may work but fails
//for example when using long file paths on Windows, which start with "\\?\"
Hdf( const OUString& rFileURL,
css::uno::Reference< css::ucb::XSimpleFileAccess3 > xSFA )
css::uno::Reference< css::ucb::XSimpleFileAccess3 > const & xSFA )
: m_aFileURL( rFileURL )
, m_pStringToDataMap( nullptr )
, m_pStringToValPosMap( nullptr )