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 /svtools/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 'svtools/source')
-rw-r--r-- | svtools/source/dialogs/addresstemplate.cxx | 4 | ||||
-rw-r--r-- | svtools/source/dialogs/colrdlg.cxx | 4 | ||||
-rw-r--r-- | svtools/source/filter/SvFilterOptionsDialog.cxx | 4 | ||||
-rw-r--r-- | svtools/source/misc/imagemgr.cxx | 2 | ||||
-rw-r--r-- | svtools/source/uno/unoevent.cxx | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/svtools/source/dialogs/addresstemplate.cxx b/svtools/source/dialogs/addresstemplate.cxx index 3564b56166f5..1ee18df73c3b 100644 --- a/svtools/source/dialogs/addresstemplate.cxx +++ b/svtools/source/dialogs/addresstemplate.cxx @@ -800,7 +800,7 @@ void AssignmentPersistentData::ImplCommit() bool bKnowOldTable = false; // fill the table list - for (const OUString& rTableName : std::as_const(aTableNames)) + for (const OUString& rTableName : aTableNames) { m_xTable->append_text(rTableName); if (rTableName == sOldTable) @@ -866,7 +866,7 @@ void AssignmentPersistentData::ImplCommit() pListbox->set_id(0, OUString::number(i)); // the field names - for (const OUString& rColumnName : std::as_const(aColumnNames)) + for (const OUString& rColumnName : aColumnNames) pListbox->append_text(rColumnName); if (!aInitialSelection->isEmpty() && (aColumnNameSet.end() != aColumnNameSet.find(*aInitialSelection))) diff --git a/svtools/source/dialogs/colrdlg.cxx b/svtools/source/dialogs/colrdlg.cxx index 67c52b55d754..cd4c73573d8b 100644 --- a/svtools/source/dialogs/colrdlg.cxx +++ b/svtools/source/dialogs/colrdlg.cxx @@ -85,7 +85,7 @@ short SvColorDialog::Execute(weld::Window* pParent) if( ret ) { props = xPropertyAccess->getPropertyValues(); - for( const auto& rProp : std::as_const(props) ) + for (const auto& rProp : props) { if( rProp.Name == sColor ) { @@ -146,7 +146,7 @@ IMPL_LINK( SvColorDialog, DialogClosedHdl, css::ui::dialogs::DialogClosedEvent*, Reference< XPropertyAccess > xPropertyAccess( mxDialog, UNO_QUERY_THROW ); Sequence< PropertyValue > props = xPropertyAccess->getPropertyValues(); - for( const auto& rProp : std::as_const(props) ) + for (const auto& rProp : props) { if( rProp.Name == sColor ) { diff --git a/svtools/source/filter/SvFilterOptionsDialog.cxx b/svtools/source/filter/SvFilterOptionsDialog.cxx index 8d8fbeed71a2..4291c15a88eb 100644 --- a/svtools/source/filter/SvFilterOptionsDialog.cxx +++ b/svtools/source/filter/SvFilterOptionsDialog.cxx @@ -167,7 +167,7 @@ void SvFilterOptionsDialog::setPropertyValues( const uno::Sequence< beans::Prope { maMediaDescriptor = aProps; - for ( const auto& rProp : std::as_const(maMediaDescriptor) ) + for (const auto& rProp : maMediaDescriptor) { if ( rProp.Name == "FilterData" ) { @@ -191,7 +191,7 @@ sal_Int16 SvFilterOptionsDialog::execute() OUString aInternalFilterName; uno::Reference<graphic::XGraphic> xGraphic; - for ( const auto& rProp : std::as_const(maMediaDescriptor) ) + for (const auto& rProp : maMediaDescriptor) { const OUString& rName = rProp.Name; if ( rName == "FilterName" ) diff --git a/svtools/source/misc/imagemgr.cxx b/svtools/source/misc/imagemgr.cxx index 4c0d31ef3eb3..85376581ee51 100644 --- a/svtools/source/misc/imagemgr.cxx +++ b/svtools/source/misc/imagemgr.cxx @@ -241,7 +241,7 @@ static OUString GetImageExtensionByFactory_Impl( const OUString& rURL ) if ( !aInternalType.isEmpty() && xAccess->hasByName( aInternalType ) ) { xAccess->getByName( aInternalType ) >>= aTypeProps; - for ( const css::beans::PropertyValue& rProp : std::as_const(aTypeProps) ) + for (const css::beans::PropertyValue& rProp : aTypeProps) { if (rProp.Name == "Extensions") { diff --git a/svtools/source/uno/unoevent.cxx b/svtools/source/uno/unoevent.cxx index 1a4b6f4baa38..853815e7d161 100644 --- a/svtools/source/uno/unoevent.cxx +++ b/svtools/source/uno/unoevent.cxx @@ -114,7 +114,7 @@ void getMacroFromAny( OUString sScriptVal; OUString sMacroVal; OUString sLibVal; - for (const PropertyValue& aValue : std::as_const(aSequence)) + for (const PropertyValue& aValue : aSequence) { if (aValue.Name == sEventType) { |