diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-07-07 16:01:01 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-07-07 18:59:55 +0200 |
commit | da7259b584678d51a2ea10e3d387c3a34d567414 (patch) | |
tree | c9ab8ac101088eeac53042f0375b188deef2ec9a /xmlhelp | |
parent | 04aed0574fdfd3f173c32d2370c8596e63fba3b1 (diff) |
loplugin:passstuffbyref also for {css::uno,rtl}::Reference
Change-Id: I0d1ee65be8a3e4b01454dba34bbeb4de58744853
Diffstat (limited to 'xmlhelp')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/databases.cxx | 4 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/databases.hxx | 10 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/db.hxx | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx index ea578559eb27..4371cfbbd627 100644 --- a/xmlhelp/source/cxxhelp/provider/databases.cxx +++ b/xmlhelp/source/cxxhelp/provider/databases.cxx @@ -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 ) diff --git a/xmlhelp/source/cxxhelp/provider/databases.hxx b/xmlhelp/source/cxxhelp/provider/databases.hxx index 15111eae1c6f..432607aa4cd0 100644 --- a/xmlhelp/source/cxxhelp/provider/databases.hxx +++ b/xmlhelp/source/cxxhelp/provider/databases.hxx @@ -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 ) {} diff --git a/xmlhelp/source/cxxhelp/provider/db.hxx b/xmlhelp/source/cxxhelp/provider/db.hxx index 23d0c3250e80..6ef89ffd1928 100644 --- a/xmlhelp/source/cxxhelp/provider/db.hxx +++ b/xmlhelp/source/cxxhelp/provider/db.hxx @@ -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 ) |