diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-11 09:53:05 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-12 07:12:21 +0000 |
commit | 875984617cfd6c773eb93f339929eb3fabd3e97b (patch) | |
tree | abb092c1b0d995d55f2f4508801df23377c9cc6d /svx/source/dialog/imapdlg.cxx | |
parent | 6bc3c2bdc5279314881b7e950d76d4d813470d11 (diff) |
clang-tidy modernize-loop-convert in svx
Change-Id: I09e5243e5dff46ceccef1a707e648ee9cb0c37c5
Reviewed-on: https://gerrit.libreoffice.org/24875
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx/source/dialog/imapdlg.cxx')
-rw-r--r-- | svx/source/dialog/imapdlg.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/dialog/imapdlg.cxx b/svx/source/dialog/imapdlg.cxx index 4cd862a3f138..983d90fffa84 100644 --- a/svx/source/dialog/imapdlg.cxx +++ b/svx/source/dialog/imapdlg.cxx @@ -155,8 +155,8 @@ SvxIMapDlg::SvxIMapDlg(SfxBindings *_pBindings, SfxChildWindow *pCW, vcl::Window //as entries are added later on TargetList aTmpList; SfxFrame::GetDefaultTargetList(aTmpList); - for (size_t i = 0, n = aTmpList.size(); i < n; ++i) - m_pCbbTarget->InsertEntry(aTmpList[i]); + for (const OUString & s : aTmpList) + m_pCbbTarget->InsertEntry(s); Size aPrefSize(m_pCbbTarget->get_preferred_size()); m_pCbbTarget->set_width_request(aPrefSize.Width()); m_pCbbTarget->Clear(); @@ -301,8 +301,8 @@ void SvxIMapDlg::SetTargetList( const TargetList& rTargetList ) m_pCbbTarget->Clear(); - for ( size_t i = 0, n = aNewList.size(); i < n; ++i ) - m_pCbbTarget->InsertEntry( aNewList[ i ] ); + for (const OUString & s : aNewList) + m_pCbbTarget->InsertEntry( s ); } void SvxIMapDlg::UpdateLink( const Graphic& rGraphic, const ImageMap* pImageMap, @@ -328,8 +328,8 @@ void SvxIMapDlg::UpdateLink( const Graphic& rGraphic, const ImageMap* pImageMap, { TargetList aTargetList( *pTargetList ); - for ( size_t i = 0, n = aTargetList.size(); i < n; ++i ) - pOwnData->aUpdateTargetList.push_back( aTargetList[ i ] ); + for (const OUString & s : aTargetList) + pOwnData->aUpdateTargetList.push_back( s ); } pOwnData->aIdle.Start(); |