diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-21 10:11:40 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-21 10:12:01 +0200 |
commit | b19ac3c4c6b4a41a1f3acac68b299fd676428a87 (patch) | |
tree | 8118fee67c28847bc69ead176621d8e8554260e2 /UnoControls | |
parent | 7b65087eabf9bd233a899723f662665ee5867378 (diff) |
clang-tidy modernize-loop-convert in a*
Change-Id: If8eada464c6dc7350e50fc90eb27aa47bd90e198
Diffstat (limited to 'UnoControls')
-rw-r--r-- | UnoControls/source/controls/progressmonitor.cxx | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/UnoControls/source/controls/progressmonitor.cxx b/UnoControls/source/controls/progressmonitor.cxx index 86bf0d8d928f..62446f5b0af7 100644 --- a/UnoControls/source/controls/progressmonitor.cxx +++ b/UnoControls/source/controls/progressmonitor.cxx @@ -741,9 +741,8 @@ void ProgressMonitor::impl_rebuildFixedText () // Collect all topics from list and format text. // "\n" MUST BE at the end of line!!! => Else ... topic and his text are not in the same line!!! - for ( size_t n = 0; n < maTextlist_Top.size(); ++n ) + for (IMPL_TextlistItem* pSearchItem : maTextlist_Top) { - IMPL_TextlistItem* pSearchItem = maTextlist_Top[ n ]; aCollectString += pSearchItem->sTopic; aCollectString += "\n"; } @@ -758,9 +757,8 @@ void ProgressMonitor::impl_rebuildFixedText () // Collect all topics from list and format text. // "\n" MUST BE at the end of line!!! => Else ... topic and his text are not in the same line!!! - for ( size_t n = 0; n < maTextlist_Top.size(); ++n ) + for (IMPL_TextlistItem* pSearchItem : maTextlist_Top) { - IMPL_TextlistItem* pSearchItem = maTextlist_Top[ n ]; aCollectString += pSearchItem->sText; aCollectString += "\n"; } @@ -777,9 +775,8 @@ void ProgressMonitor::impl_rebuildFixedText () // Collect all topics from list and format text. // "\n" MUST BE at the end of line!!! => Else ... topic and his text are not in the same line!!! - for ( size_t n = 0; n < maTextlist_Bottom.size(); ++n ) + for (IMPL_TextlistItem* pSearchItem : maTextlist_Bottom) { - IMPL_TextlistItem* pSearchItem = maTextlist_Bottom[ n ]; aCollectString += pSearchItem->sTopic; aCollectString += "\n"; } @@ -794,9 +791,8 @@ void ProgressMonitor::impl_rebuildFixedText () // Collect all topics from list and format text. // "\n" MUST BE at the end of line!!! => Else ... topic and his text are not in the same line!!! - for ( size_t n = 0; n < maTextlist_Bottom.size(); ++n ) + for (IMPL_TextlistItem* pSearchItem : maTextlist_Bottom) { - IMPL_TextlistItem* pSearchItem = maTextlist_Bottom[ n ]; aCollectString += pSearchItem->sText; aCollectString += "\n"; } @@ -813,16 +809,14 @@ void ProgressMonitor::impl_cleanMemory () // Delete all of lists. - for ( size_t nPosition = 0; nPosition < maTextlist_Top.size(); ++nPosition ) + for (IMPL_TextlistItem* pSearchItem : maTextlist_Top) { - IMPL_TextlistItem* pSearchItem = maTextlist_Top[ nPosition ]; delete pSearchItem; } maTextlist_Top.clear(); - for ( size_t nPosition = 0; nPosition < maTextlist_Bottom.size(); ++nPosition ) + for (IMPL_TextlistItem* pSearchItem : maTextlist_Bottom) { - IMPL_TextlistItem* pSearchItem = maTextlist_Bottom[ nPosition ]; delete pSearchItem; } maTextlist_Bottom.clear(); |