summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-21 09:11:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-21 09:54:30 +0200
commit60846212c7f5271a86fd43555d633f77d59f5a10 (patch)
treeba3d9464385a2f3abdeea93b1fe887bf385f8463 /sfx2
parent8477bbf8d6867e656b8132f0ddd682d08590a547 (diff)
use for-range on Sequence in sfx2..sw
Change-Id: I09806869f2fdbae61f4c5d5c9db6859202bb63b5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94609 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/shutdowniconaqua.mm12
1 files changed, 6 insertions, 6 deletions
diff --git a/sfx2/source/appl/shutdowniconaqua.mm b/sfx2/source/appl/shutdowniconaqua.mm
index 4a0f61b5dcf5..78c89f33865c 100644
--- a/sfx2/source/appl/shutdowniconaqua.mm
+++ b/sfx2/source/appl/shutdowniconaqua.mm
@@ -192,17 +192,17 @@ class RecentFilesStringLength : public ::cppu::WeakImplHelper< css::util::XStrin
css::uno::Sequence< css::beans::PropertyValue >& rPickListEntry = aHistoryList[i];
RecentMenuEntry aRecentFile;
- for ( int j = 0; j < rPickListEntry.getLength(); j++ )
+ for ( const css::beans::PropertyValue& rProp : rPickListEntry )
{
- css::uno::Any a = rPickListEntry[j].Value;
+ const css::uno::Any& a = rProp.Value;
- if ( rPickListEntry[j].Name == HISTORY_PROPERTYNAME_URL )
+ if ( rProp.Name == HISTORY_PROPERTYNAME_URL )
a >>= aRecentFile.aURL;
- else if ( rPickListEntry[j].Name == HISTORY_PROPERTYNAME_FILTER )
+ else if ( rProp.Name == HISTORY_PROPERTYNAME_FILTER )
a >>= aRecentFile.aFilter;
- else if ( rPickListEntry[j].Name == HISTORY_PROPERTYNAME_TITLE )
+ else if ( rProp.Name == HISTORY_PROPERTYNAME_TITLE )
a >>= aRecentFile.aTitle;
- else if ( rPickListEntry[j].Name == HISTORY_PROPERTYNAME_PASSWORD )
+ else if ( rProp.Name == HISTORY_PROPERTYNAME_PASSWORD )
a >>= aRecentFile.aPassword;
}