diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2005-09-05 08:01:37 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2005-09-05 08:01:37 +0000 |
commit | be032ba0705ffd653797a8c0b3a938ec638c9376 (patch) | |
tree | 67480224483716c93a8be3afac047fe32cb14c96 /vcl | |
parent | 9446bc6c0e12472bc2053d6d31f4992580e12982 (diff) |
INTEGRATION: CWS hr18 (1.37.222); FILE MERGED
2005/08/12 12:47:19 hr 1.37.222.1: #53247#: ToolBox::ImplUpdateCustomMenu(): use reverse iterator instead of decrementing the iterator
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/toolbox2.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx index de881a39efeb..4af07ab9f290 100644 --- a/vcl/source/window/toolbox2.cxx +++ b/vcl/source/window/toolbox2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: toolbox2.cxx,v $ * - * $Revision: 1.37 $ + * $Revision: 1.38 $ * - * last change: $Author: rt $ $Date: 2005-01-31 09:20:09 $ + * last change: $Author: rt $ $Date: 2005-09-05 09:01:37 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -2191,10 +2191,10 @@ void ToolBox::ImplUpdateCustomMenu() } // add menu items, starting from the end and inserting at pos 0 - if ( mpData->m_aItems.size() > 0 ) + if ( !mpData->m_aItems.empty() ) { - std::vector< ImplToolItem >::const_iterator it = mpData->m_aItems.end(); - while ( --it >= mpData->m_aItems.begin() ) + for ( std::vector< ImplToolItem >::reverse_iterator it(mpData->m_aItems.rbegin()); + it != mpData->m_aItems.rend(); ++it) { if( it->IsClipped() ) { |