diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-12 12:08:00 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-04-14 11:37:19 +0000 |
commit | 62633dfe026bc3badf7066e5fb454036bae9cfdc (patch) | |
tree | b1a30ddd709ba80b8629d916d54c03d733651d12 /xmlhelp | |
parent | aa458c31a5dfa2be8b6bd8f1b4e402ce8c27edde (diff) |
clang-tidy performance-unnecessary-value-param in various
Change-Id: I7168d44dab8e6a8e37bb7920d744ff32f5e52907
Reviewed-on: https://gerrit.libreoffice.org/24019
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'xmlhelp')
-rw-r--r-- | xmlhelp/source/cxxhelp/inc/tvread.hxx | 6 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/databases.cxx | 16 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/databases.hxx | 16 | ||||
-rw-r--r-- | xmlhelp/source/treeview/tvread.cxx | 6 |
4 files changed, 22 insertions, 22 deletions
diff --git a/xmlhelp/source/cxxhelp/inc/tvread.hxx b/xmlhelp/source/cxxhelp/inc/tvread.hxx index 0b21e313fde5..bb5868ed19a2 100644 --- a/xmlhelp/source/cxxhelp/inc/tvread.hxx +++ b/xmlhelp/source/cxxhelp/inc/tvread.hxx @@ -288,7 +288,7 @@ namespace treeview { private: static css::uno::Reference< css::deployment::XPackage > implGetHelpPackageFromPackage - ( const css::uno::Reference< css::deployment::XPackage > xPackage, + ( const css::uno::Reference< css::deployment::XPackage >& xPackage, css::uno::Reference< css::deployment::XPackage >& o_xParentPackageBundle ); protected: @@ -300,7 +300,7 @@ namespace treeview { ( css::uno::Reference< css::deployment::XPackage >& o_xParentPackageBundle ); void implGetLanguageVectorFromPackage( ::std::vector< OUString > &rv, - css::uno::Reference< css::deployment::XPackage > xPackage ); + const css::uno::Reference< css::deployment::XPackage >& xPackage ); osl::Mutex m_aMutex; css::uno::Reference< css::uno::XComponentContext > m_xContext; @@ -339,7 +339,7 @@ namespace treeview { private: OUString expandURL( const OUString& aURL ); OUString implGetTreeFileFromPackage( sal_Int32& rnFileSize, - css::uno::Reference< css::deployment::XPackage > xPackage ); + const css::uno::Reference< css::deployment::XPackage >& xPackage ); }; // end class TreeFileIterator diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx index 4f502d4221ae..8c7fae0a0eba 100644 --- a/xmlhelp/source/cxxhelp/provider/databases.cxx +++ b/xmlhelp/source/cxxhelp/provider/databases.cxx @@ -86,7 +86,7 @@ OUString Databases::expandURL( const OUString& aURL ) return aRetURL; } -OUString Databases::expandURL( const OUString& aURL, Reference< uno::XComponentContext > xContext ) +OUString Databases::expandURL( const OUString& aURL, const Reference< uno::XComponentContext >& xContext ) { static Reference< util::XMacroExpander > xMacroExpander; static Reference< uri::XUriReferenceFactory > xFac; @@ -1176,7 +1176,7 @@ void ExtensionIteratorBase::init() } Reference< deployment::XPackage > ExtensionIteratorBase::implGetHelpPackageFromPackage - ( Reference< deployment::XPackage > xPackage, Reference< deployment::XPackage >& o_xParentPackageBundle ) + ( const Reference< deployment::XPackage >& xPackage, Reference< deployment::XPackage >& o_xParentPackageBundle ) { o_xParentPackageBundle.clear(); @@ -1325,7 +1325,7 @@ Reference< deployment::XPackage > ExtensionIteratorBase::implGetNextBundledHelpP } OUString ExtensionIteratorBase::implGetFileFromPackage( - const OUString& rFileExtension, Reference< deployment::XPackage > xPackage ) + const OUString& rFileExtension, const Reference< deployment::XPackage >& xPackage ) { // No extension -> search for pure language folder bool bLangFolderOnly = rFileExtension.isEmpty(); @@ -1362,7 +1362,7 @@ inline bool isLetter( sal_Unicode c ) } void ExtensionIteratorBase::implGetLanguageVectorFromPackage( ::std::vector< OUString > &rv, - css::uno::Reference< css::deployment::XPackage > xPackage ) + const css::uno::Reference< css::deployment::XPackage >& xPackage ) { rv.clear(); OUString aExtensionPath = xPackage->getURL(); @@ -1453,7 +1453,7 @@ helpdatafileproxy::Hdf* DataBaseIterator::nextHdf( OUString* o_pExtensionPath, O return pRetHdf; } -helpdatafileproxy::Hdf* DataBaseIterator::implGetHdfFromPackage( Reference< deployment::XPackage > xPackage, +helpdatafileproxy::Hdf* DataBaseIterator::implGetHdfFromPackage( const Reference< deployment::XPackage >& xPackage, OUString* o_pExtensionPath, OUString* o_pExtensionRegistryPath ) { @@ -1574,7 +1574,7 @@ OUString KeyDataBaseFileIterator::nextDbFile( bool& o_rbExtension ) //Returns a file URL, that does not contain macros OUString KeyDataBaseFileIterator::implGetDbFileFromPackage - ( Reference< deployment::XPackage > xPackage ) + ( const Reference< deployment::XPackage >& xPackage ) { OUString aExpandedURL = implGetFileFromPackage( ".key", xPackage ); @@ -1643,7 +1643,7 @@ Reference< XHierarchicalNameAccess > JarFileIterator::nextJarFile } Reference< XHierarchicalNameAccess > JarFileIterator::implGetJarFromPackage -( Reference< deployment::XPackage > xPackage, OUString* o_pExtensionPath, OUString* o_pExtensionRegistryPath ) +( const Reference< deployment::XPackage >& xPackage, OUString* o_pExtensionPath, OUString* o_pExtensionRegistryPath ) { Reference< XHierarchicalNameAccess > xNA; @@ -1771,7 +1771,7 @@ OUString IndexFolderIterator::nextIndexFolder( bool& o_rbExtension, bool& o_rbTe return aIndexFolder; } -OUString IndexFolderIterator::implGetIndexFolderFromPackage( bool& o_rbTemporary, Reference< deployment::XPackage > xPackage ) +OUString IndexFolderIterator::implGetIndexFolderFromPackage( bool& o_rbTemporary, const Reference< deployment::XPackage >& xPackage ) { OUString aIndexFolder = implGetFileFromPackage( ".idxl", xPackage ); diff --git a/xmlhelp/source/cxxhelp/provider/databases.hxx b/xmlhelp/source/cxxhelp/provider/databases.hxx index 5b8626d74e39..7976cccaa769 100644 --- a/xmlhelp/source/cxxhelp/provider/databases.hxx +++ b/xmlhelp/source/cxxhelp/provider/databases.hxx @@ -232,7 +232,7 @@ namespace chelp { OUString expandURL( const OUString& aURL ); static OUString expandURL( const OUString& aURL, - css::uno::Reference< css::uno::XComponentContext > xContext ); + const css::uno::Reference< css::uno::XComponentContext >& xContext ); private: @@ -337,7 +337,7 @@ namespace chelp { private: static css::uno::Reference< css::deployment::XPackage > implGetHelpPackageFromPackage - ( const css::uno::Reference< css::deployment::XPackage > xPackage, + ( const css::uno::Reference< css::deployment::XPackage >& xPackage, css::uno::Reference< css::deployment::XPackage >& o_xParentPackageBundle ); protected: @@ -348,9 +348,9 @@ namespace chelp { css::uno::Reference< css::deployment::XPackage > implGetNextBundledHelpPackage ( css::uno::Reference< css::deployment::XPackage >& o_xParentPackageBundle ); OUString implGetFileFromPackage( const OUString& rFileExtension, - css::uno::Reference< css::deployment::XPackage > xPackage ); + const css::uno::Reference< css::deployment::XPackage >& xPackage ); void implGetLanguageVectorFromPackage( ::std::vector< OUString > &rv, - css::uno::Reference< css::deployment::XPackage > xPackage ); + const css::uno::Reference< css::deployment::XPackage >& xPackage ); css::uno::Reference< css::uno::XComponentContext > m_xContext; css::uno::Reference< css::ucb::XSimpleFileAccess3 > m_xSFA; @@ -397,7 +397,7 @@ namespace chelp { private: helpdatafileproxy::Hdf* implGetHdfFromPackage( - css::uno::Reference< css::deployment::XPackage > xPackage, + const css::uno::Reference< css::deployment::XPackage >& xPackage, OUString* o_pExtensionPath, OUString* o_pExtensionRegistryPath ); bool m_bHelpText; @@ -416,7 +416,7 @@ namespace chelp { private: OUString implGetDbFileFromPackage( - css::uno::Reference< css::deployment::XPackage > xPackage ); + const css::uno::Reference< css::deployment::XPackage >& xPackage ); }; // end class KeyDataBaseFileIterator @@ -434,7 +434,7 @@ namespace chelp { private: css::uno::Reference< css::container::XHierarchicalNameAccess > - implGetJarFromPackage(css::uno::Reference< css::deployment::XPackage > xPackage, + implGetJarFromPackage(const css::uno::Reference< css::deployment::XPackage >& xPackage, OUString* o_pExtensionPath = nullptr, OUString* o_pExtensionRegistryPath = nullptr ); }; // end class JarFileIterator @@ -451,7 +451,7 @@ namespace chelp { private: OUString implGetIndexFolderFromPackage( bool& o_rbTemporary, - css::uno::Reference< css::deployment::XPackage > xPackage ); + const css::uno::Reference< css::deployment::XPackage >& xPackage ); }; // end class KeyDataBaseFileIterator diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx index beab51903bd0..3dffd29d251d 100644 --- a/xmlhelp/source/treeview/tvread.cxx +++ b/xmlhelp/source/treeview/tvread.cxx @@ -895,7 +895,7 @@ void ExtensionIteratorBase::init() } Reference< deployment::XPackage > ExtensionIteratorBase::implGetHelpPackageFromPackage - ( Reference< deployment::XPackage > xPackage, Reference< deployment::XPackage >& o_xParentPackageBundle ) + ( const Reference< deployment::XPackage >& xPackage, Reference< deployment::XPackage >& o_xParentPackageBundle ) { o_xParentPackageBundle.clear(); @@ -1042,7 +1042,7 @@ inline bool isLetter( sal_Unicode c ) } void ExtensionIteratorBase::implGetLanguageVectorFromPackage( ::std::vector< OUString > &rv, - css::uno::Reference< css::deployment::XPackage > xPackage ) + const css::uno::Reference< css::deployment::XPackage >& xPackage ) { rv.clear(); OUString aExtensionPath = xPackage->getURL(); @@ -1156,7 +1156,7 @@ OUString TreeFileIterator::expandURL( const OUString& aURL ) } OUString TreeFileIterator::implGetTreeFileFromPackage - ( sal_Int32& rnFileSize, Reference< deployment::XPackage > xPackage ) + ( sal_Int32& rnFileSize, const Reference< deployment::XPackage >& xPackage ) { OUString aRetFile; OUString aLanguage = m_aLanguage; |