diff options
Diffstat (limited to 'sfx2/source/control/recentdocsview.cxx')
-rw-r--r-- | sfx2/source/control/recentdocsview.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx index 51674e4e808d..46314a428ab2 100644 --- a/sfx2/source/control/recentdocsview.cxx +++ b/sfx2/source/control/recentdocsview.cxx @@ -240,14 +240,14 @@ void RecentDocsView::Reload() OUString aTitle; BitmapEx aThumbnail; - for ( int j = 0; j < rRecentEntry.getLength(); j++ ) + for ( const auto& rProp : rRecentEntry ) { - Any a = rRecentEntry[j].Value; + Any a = rProp.Value; - if (rRecentEntry[j].Name == "URL") + if (rProp.Name == "URL") a >>= aURL; //fdo#74834: only load thumbnail if the corresponding option is not disabled in the configuration - else if (rRecentEntry[j].Name == "Thumbnail" && officecfg::Office::Common::History::RecentDocsThumbnail::get()) + else if (rProp.Name == "Thumbnail" && officecfg::Office::Common::History::RecentDocsThumbnail::get()) { OUString aBase64; a >>= aBase64; |