diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2012-03-31 21:12:50 -0430 |
---|---|---|
committer | Rafael Dominguez <venccsralph@gmail.com> | 2012-04-11 22:10:55 -0430 |
commit | 3b887c8d3fef676e0037a4f3381f6a491ec0da4f (patch) | |
tree | 43c7fd9ffc35d462680291a84d1c8efab36f99d2 /svtools | |
parent | a9a05a06ac275ec2695ff607ed118e1b46ab7a4e (diff) |
Replace deprecated List for std::vector.
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/imivctl1.cxx | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx index eec11d10e896..4cbaa46a9648 100644 --- a/svtools/source/contnr/imivctl1.cxx +++ b/svtools/source/contnr/imivctl1.cxx @@ -3558,25 +3558,13 @@ void SvxIconChoiceCtrl_Impl::SetPositionMode( SvxIconChoiceCtrlPositionMode eMod if( ePositionMode == IcnViewPositionModeAutoArrange ) { - List aMovedEntries; for( size_t nCur = 0; nCur < nCount; nCur++ ) { SvxIconChoiceCtrlEntry* pEntry = aEntries[ nCur ]; if( pEntry->GetFlags() & (ICNVIEW_FLAG_POS_LOCKED | ICNVIEW_FLAG_POS_MOVED)) - { - SvxIconChoiceCtrlEntry_Impl* pE = new SvxIconChoiceCtrlEntry_Impl( - pEntry, GetEntryBoundRect( pEntry )); - aMovedEntries.Insert( pE, LIST_APPEND ); - } + SetEntryPos(pEntry, GetEntryBoundRect( pEntry ).TopLeft()); } - nCount = aMovedEntries.Count(); - for( size_t nCur = 0; nCur < nCount; nCur++ ) - { - SvxIconChoiceCtrlEntry_Impl* pE = (SvxIconChoiceCtrlEntry_Impl*)aMovedEntries.GetObject(nCur); - SetEntryPos( pE->_pEntry, pE->_aPos ); - } - for( size_t nCur = 0; nCur < nCount; nCur++ ) - delete (SvxIconChoiceCtrlEntry_Impl*)aMovedEntries.GetObject( nCur ); + if( aEntries.size() ) aAutoArrangeTimer.Start(); } |