diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-30 09:40:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-30 11:24:33 +0200 |
commit | 3b8e53f66ffd4d631a850fe76250124dc4a195c3 (patch) | |
tree | 2613882a4876f0a66324b7e29e61c46b3ec451b0 /package | |
parent | d242a19dbdd53b7ae0b6a6ceacca6aa1b6ac54a9 (diff) |
loplugin:constparams improve handling of pointer params
Change-Id: I4c0002e72703eded435bfe4985f5b0121bf8524b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122843
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package')
-rw-r--r-- | package/source/xstor/xstorage.cxx | 2 | ||||
-rw-r--r-- | package/source/xstor/xstorage.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx index 27d84e97fa6f..ddadab15afce 100644 --- a/package/source/xstor/xstorage.cxx +++ b/package/source/xstor/xstorage.cxx @@ -376,7 +376,7 @@ void OStorage_Impl::SetReadOnlyWrap( OStorage& aStorage ) m_aReadOnlyWrapVector.emplace_back( &aStorage ); } -void OStorage_Impl::RemoveReadOnlyWrap( OStorage& aStorage ) +void OStorage_Impl::RemoveReadOnlyWrap( const OStorage& aStorage ) { for ( StorageHoldersType::iterator pStorageIter = m_aReadOnlyWrapVector.begin(); pStorageIter != m_aReadOnlyWrapVector.end();) diff --git a/package/source/xstor/xstorage.hxx b/package/source/xstor/xstorage.hxx index 1929cc9df305..92cfc62c14eb 100644 --- a/package/source/xstor/xstorage.hxx +++ b/package/source/xstor/xstorage.hxx @@ -190,7 +190,7 @@ struct OStorage_Impl ~OStorage_Impl(); void SetReadOnlyWrap( OStorage& aStorage ); - void RemoveReadOnlyWrap( OStorage& aStorage ); + void RemoveReadOnlyWrap( const OStorage& aStorage ); void OpenOwnPackage(); void ReadContents(); |