From 3b8e53f66ffd4d631a850fe76250124dc4a195c3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 30 Sep 2021 09:40:29 +0200 Subject: 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 --- package/source/xstor/xstorage.cxx | 2 +- package/source/xstor/xstorage.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'package') 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(); -- cgit