diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-01-27 15:42:54 +0600 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-01-27 12:43:48 +0100 |
commit | 0fa827dbb2147d1d3850b2181eb6ab6a02a04500 (patch) | |
tree | 721d02c64c26365e605a2348fd1ff744c4dd8d29 /package/source | |
parent | db227dc7d032d642983c313ab74c34a301464c2a (diff) |
Drop std::as_const from css::uno::Sequence iterations
Obsoleted by commit 2484de6728bd11bb7949003d112f1ece2223c7a1 (Remove
non-const Sequence::begin()/end() in internal code, 2021-10-15) and
commit fb3c04bd1930eedacd406874e1a285d62bbf27d9 (Drop non-const
Sequence::operator[] in internal code, 2021-11-05).
Change-Id: Idbafef5d34c0d4771cbbf75b9db9712e504164cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162640
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'package/source')
-rw-r--r-- | package/source/manifest/ManifestExport.cxx | 2 | ||||
-rw-r--r-- | package/source/xstor/owriteablestream.cxx | 2 | ||||
-rw-r--r-- | package/source/xstor/xfactory.cxx | 2 | ||||
-rw-r--r-- | package/source/xstor/xstorage.cxx | 6 | ||||
-rw-r--r-- | package/source/zippackage/ZipPackage.cxx | 4 | ||||
-rw-r--r-- | package/source/zippackage/ZipPackageStream.cxx | 2 | ||||
-rw-r--r-- | package/source/zippackage/zipfileaccess.cxx | 2 |
7 files changed, 10 insertions, 10 deletions
diff --git a/package/source/manifest/ManifestExport.cxx b/package/source/manifest/ManifestExport.cxx index 1d51e223e43b..9b33e6bb371e 100644 --- a/package/source/manifest/ManifestExport.cxx +++ b/package/source/manifest/ManifestExport.cxx @@ -223,7 +223,7 @@ ManifestExport::ManifestExport( uno::Reference< xml::sax::XDocumentHandler > con uno::Sequence< uno::Sequence < beans::NamedValue > > aKeyInfoSequence; *pKeyInfoProperty >>= aKeyInfoSequence; - for (const uno::Sequence<beans::NamedValue>& rKeyInfoSequence : std::as_const(aKeyInfoSequence)) + for (const uno::Sequence<beans::NamedValue>& rKeyInfoSequence : aKeyInfoSequence) { uno::Sequence < sal_Int8 > aPgpKeyID; uno::Sequence < sal_Int8 > aPgpKeyPacket; diff --git a/package/source/xstor/owriteablestream.cxx b/package/source/xstor/owriteablestream.cxx index 68bf5d1688a0..b45f41089e0d 100644 --- a/package/source/xstor/owriteablestream.cxx +++ b/package/source/xstor/owriteablestream.cxx @@ -340,7 +340,7 @@ bool OWriteStream_Impl::IsEncrypted() } bool bToBeEncr = false; - for ( const auto& rProp : std::as_const(m_aProps) ) + for (const auto& rProp : m_aProps) { if ( rProp.Name == "Encrypted" ) { diff --git a/package/source/xstor/xfactory.cxx b/package/source/xstor/xfactory.cxx index d611ddfabe6c..4d48b2b5b1fe 100644 --- a/package/source/xstor/xfactory.cxx +++ b/package/source/xstor/xfactory.cxx @@ -163,7 +163,7 @@ uno::Reference< uno::XInterface > SAL_CALL OStorageFactory::createInstanceWithAr } sal_Int32 nNumArgs = 1; - for ( const auto& rProp : std::as_const(aDescr) ) + for (const auto& rProp : aDescr) { if ( rProp.Name == "InteractionHandler" || rProp.Name == "Password" diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx index d19d1cac7f33..ba35e6973569 100644 --- a/package/source/xstor/xstorage.cxx +++ b/package/source/xstor/xstorage.cxx @@ -107,7 +107,7 @@ void OStorage_Impl::completeStorageStreamCopy_Impl( aPropNames.realloc( 1 ); } - for ( const auto& rPropName : std::as_const(aPropNames) ) + for (const auto& rPropName : aPropNames) xDestProps->setPropertyValue( rPropName, xSourceProps->getPropertyValue( rPropName ) ); } @@ -302,7 +302,7 @@ OStorage_Impl::~OStorage_Impl() m_xPackage.clear(); OUString aPropertyName = "URL"; - for ( const auto& rProp : std::as_const(m_xProperties) ) + for (const auto& rProp : m_xProperties) { if ( rProp.Name == aPropertyName ) { @@ -392,7 +392,7 @@ void OStorage_Impl::OpenOwnPackage() uno::Any( false ) ); sal_Int32 nArgNum = 2; - for ( const auto& rProp : std::as_const(m_xProperties) ) + for (const auto& rProp : m_xProperties) { if ( rProp.Name == "RepairPackage" || rProp.Name == "ProgressHandler" diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx index c4de219f80de..8c09bfefcbb6 100644 --- a/package/source/zippackage/ZipPackage.cxx +++ b/package/source/zippackage/ZipPackage.cxx @@ -1725,7 +1725,7 @@ uno::Sequence< sal_Int8 > ZipPackage::GetEncryptionKey() else throw uno::RuntimeException(THROW_WHERE "No expected key is provided!" ); - for ( const auto& rKey : std::as_const(m_aStorageEncryptionKeys) ) + for (const auto& rKey : m_aStorageEncryptionKeys) if ( rKey.Name == aNameToFind ) rKey.Value >>= aResult; } @@ -1801,7 +1801,7 @@ void SAL_CALL ZipPackage::setPropertyValue( const OUString& aPropertyName, const throw IllegalArgumentException(THROW_WHERE "unexpected algorithms list is provided.", uno::Reference< uno::XInterface >(), 2 ); } - for ( const auto& rAlgorithm : std::as_const(aAlgorithms) ) + for (const auto& rAlgorithm : aAlgorithms) { if ( rAlgorithm.Name == "StartKeyGenerationAlgorithm" ) { diff --git a/package/source/zippackage/ZipPackageStream.cxx b/package/source/zippackage/ZipPackageStream.cxx index cc763e8d6f1f..b5af8216827a 100644 --- a/package/source/zippackage/ZipPackageStream.cxx +++ b/package/source/zippackage/ZipPackageStream.cxx @@ -238,7 +238,7 @@ uno::Sequence<sal_Int8> ZipPackageStream::GetEncryptionKey(Bugs const bugs) else throw uno::RuntimeException(THROW_WHERE "No expected key is provided!" ); - for ( const auto& rKey : std::as_const(m_aStorageEncryptionKeys) ) + for (const auto& rKey : m_aStorageEncryptionKeys) if ( rKey.Name == aNameToFind ) rKey.Value >>= aResult; diff --git a/package/source/zippackage/zipfileaccess.cxx b/package/source/zippackage/zipfileaccess.cxx index d693a51ceceb..8056347bfb35 100644 --- a/package/source/zippackage/zipfileaccess.cxx +++ b/package/source/zippackage/zipfileaccess.cxx @@ -214,7 +214,7 @@ void SAL_CALL OZipFileAccess::initialize( const uno::Sequence< uno::Any >& aArgu } else if (aArguments[0] >>= aArgs) { - for (const beans::NamedValue& rArg : std::as_const(aArgs)) + for (const beans::NamedValue& rArg : aArgs) { if (rArg.Name == "URL") rArg.Value >>= aParamURL; |