diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-26 15:43:28 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-27 15:03:40 +0200 |
commit | 5e4fc9540993ee5e10f1986918acdd868a1fcf1b (patch) | |
tree | ce8220d974c5e7994c82fb35b7bee0f7fd21a7ed /forms | |
parent | 0c2d6574c6cca4bbb0cc469fb2c976774394e01a (diff) |
clang-tidy modernize-loop-convert in f*
Change-Id: Id866aa244378758e3bdb9e99d02cdd2ae6104e16
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/richtext/richtextvclcontrol.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/forms/source/richtext/richtextvclcontrol.cxx b/forms/source/richtext/richtextvclcontrol.cxx index c502ccc9e19d..ca5665159cc7 100644 --- a/forms/source/richtext/richtextvclcontrol.cxx +++ b/forms/source/richtext/richtextvclcontrol.cxx @@ -237,11 +237,11 @@ namespace frm ::sfx2::FileDialogHelper aFP( bLoad ? css::ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE : css::ui::dialogs::TemplateDescription::FILESAVE_AUTOEXTENSION, 0, this ); - for ( size_t i = 0; i < SAL_N_ELEMENTS( aExportFormats ); ++i ) + for (auto & aExportFormat : aExportFormats) { aFP.AddFilter( - OUString::createFromAscii( aExportFormats[i].pDescription ), - OUString::createFromAscii( aExportFormats[i].pExtension ) ); + OUString::createFromAscii( aExportFormat.pDescription ), + OUString::createFromAscii( aExportFormat.pExtension ) ); } ErrCode nResult = aFP.Execute(); if ( nResult == 0 ) @@ -254,11 +254,11 @@ namespace frm { EETextFormat eFormat = EE_FORMAT_XML; OUString sFilter = aFP.GetCurrentFilter(); - for ( size_t i = 0; i < SAL_N_ELEMENTS( aExportFormats ); ++i ) + for (auto & aExportFormat : aExportFormats) { - if ( sFilter.equalsAscii( aExportFormats[i].pDescription ) ) + if ( sFilter.equalsAscii( aExportFormat.pDescription ) ) { - eFormat = aExportFormats[i].eFormat; + eFormat = aExportFormat.eFormat; break; } } |