diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-17 10:55:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-17 13:33:48 +0200 |
commit | f71a35500088ba332f21896f373de0fa903e7bcc (patch) | |
tree | 92206ccbb46be2098ae37e069b4fa55f8b79a9fd /include/unotools | |
parent | 49bc18c0472b4c7758bfcbdf55383de9e9ef3027 (diff) |
loplugin:constparams in configmgr,unotools
Change-Id: Ief3df5487eb20b1f6d0e8aed89cfef4464d23a88
Reviewed-on: https://gerrit.libreoffice.org/40048
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/unotools')
-rw-r--r-- | include/unotools/ZipPackageHelper.hxx | 6 | ||||
-rw-r--r-- | include/unotools/compatibility.hxx | 2 | ||||
-rw-r--r-- | include/unotools/configitem.hxx | 2 | ||||
-rw-r--r-- | include/unotools/configmgr.hxx | 2 | ||||
-rw-r--r-- | include/unotools/desktopterminationobserver.hxx | 2 | ||||
-rw-r--r-- | include/unotools/options.hxx | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/include/unotools/ZipPackageHelper.hxx b/include/unotools/ZipPackageHelper.hxx index 61c77668232f..c3a7f963ba38 100644 --- a/include/unotools/ZipPackageHelper.hxx +++ b/include/unotools/ZipPackageHelper.hxx @@ -39,14 +39,14 @@ public: void savePackage(); /// @throws css::uno::Exception - void addFile( css::uno::Reference< css::uno::XInterface >& xRootFolder, + void addFile( css::uno::Reference< css::uno::XInterface > const & xRootFolder, const OUString& rSourceFile ); /// @throws css::uno::Exception - css::uno::Reference< css::uno::XInterface > addFolder( css::uno::Reference< css::uno::XInterface >& xRootFolder, + css::uno::Reference< css::uno::XInterface > addFolder( css::uno::Reference< css::uno::XInterface > const & xRootFolder, const OUString& rName ); - void addFolderWithContent( css::uno::Reference< css::uno::XInterface >& xRootFolder, + void addFolderWithContent( css::uno::Reference< css::uno::XInterface > const & xRootFolder, const OUString& rDirURL ); css::uno::Reference< css::uno::XInterface >& getRootFolder(); diff --git a/include/unotools/compatibility.hxx b/include/unotools/compatibility.hxx index 5a4e2f7922ef..f281f58aad1d 100644 --- a/include/unotools/compatibility.hxx +++ b/include/unotools/compatibility.hxx @@ -127,7 +127,7 @@ class UNOTOOLS_DLLPUBLIC SvtCompatibilityEntry return aValue; } - void setValue( const Index rIdx, css::uno::Any& rValue ) + void setValue( const Index rIdx, css::uno::Any const & rValue ) { if ( static_cast<size_t>(rIdx) < getElementCount() ) { diff --git a/include/unotools/configitem.hxx b/include/unotools/configitem.hxx index 41c8b62a007d..5a842a1193be 100644 --- a/include/unotools/configitem.hxx +++ b/include/unotools/configitem.hxx @@ -154,7 +154,7 @@ namespace utl bool ClearNodeSet(const OUString& rNode); // remove selected members of a set bool ClearNodeElements(const OUString& rNode, - css::uno::Sequence< OUString >& rElements); + css::uno::Sequence< OUString > const & rElements); // change or add members to a set bool SetSetProperties(const OUString& rNode, const css::uno::Sequence< css::beans::PropertyValue >& rValues); // remove, change or add members of a set diff --git a/include/unotools/configmgr.hxx b/include/unotools/configmgr.hxx index bf425885b083..c74305b3c6b1 100644 --- a/include/unotools/configmgr.hxx +++ b/include/unotools/configmgr.hxx @@ -58,7 +58,7 @@ public: SAL_DLLPRIVATE static ConfigManager & getConfigManager(); SAL_DLLPRIVATE static css::uno::Reference< css::container::XHierarchicalNameAccess> - acquireTree(utl::ConfigItem & item); + acquireTree(utl::ConfigItem const & item); SAL_DLLPRIVATE ConfigManager(); diff --git a/include/unotools/desktopterminationobserver.hxx b/include/unotools/desktopterminationobserver.hxx index 2ee9686cbada..473bf2c0f2fe 100644 --- a/include/unotools/desktopterminationobserver.hxx +++ b/include/unotools/desktopterminationobserver.hxx @@ -53,7 +53,7 @@ namespace utl /** revokes a termination listener */ - UNOTOOLS_DLLPUBLIC void revokeTerminationListener( ITerminationListener* _pListener ); + UNOTOOLS_DLLPUBLIC void revokeTerminationListener( ITerminationListener const * _pListener ); } } // namespace utl diff --git a/include/unotools/options.hxx b/include/unotools/options.hxx index c2316aacf940..22a731b501ef 100644 --- a/include/unotools/options.hxx +++ b/include/unotools/options.hxx @@ -73,7 +73,7 @@ namespace utl { public: void AddListener( utl::ConfigurationListener* pListener ); - void RemoveListener( utl::ConfigurationListener* pListener ); + void RemoveListener( utl::ConfigurationListener const * pListener ); // notify listeners; nHint is an implementation detail of the particular class deriving from ConfigurationBroadcaster void NotifyListeners( ConfigurationHints nHint ); |