diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-03-07 19:43:34 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-03-07 19:44:04 +0100 |
commit | ab78f801e0d1f4dc4a9346477cc6979893996aee (patch) | |
tree | 1165fc20630b78e5a72d3420f2bc2ab1595d3992 /basctl/source/basicide/layout.cxx | |
parent | 4575d7cf657ae291c427c2318eb4600cec2f12b7 (diff) |
loplugin:loopvartoosmall
Change-Id: Ia8c57fb69873d57c3271a8f6d497fecec3db1899
Diffstat (limited to 'basctl/source/basicide/layout.cxx')
-rw-r--r-- | basctl/source/basicide/layout.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/basctl/source/basicide/layout.cxx b/basctl/source/basicide/layout.cxx index b93e50ae3395..6d87bf687ccb 100644 --- a/basctl/source/basicide/layout.cxx +++ b/basctl/source/basicide/layout.cxx @@ -216,7 +216,7 @@ void Layout::SplittedSide::Add (DockingWindow* pWin, Size const& rSize) void Layout::SplittedSide::Remove (DockingWindow* pWin) { // contains? - unsigned iWin; + std::vector<Item>::size_type iWin; for (iWin = 0; iWin != vItems.size(); ++iWin) if (vItems[iWin].pWin == pWin) break; @@ -251,8 +251,8 @@ bool Layout::SplittedSide::IsDocking (DockingWindow const& rWin) // IsEmpty() -- are there no windows docked in this strip? bool Layout::SplittedSide::IsEmpty () const { - for (unsigned i = 0; i != vItems.size(); ++i) - if (IsDocking(*vItems[i].pWin)) + for (auto const & i: vItems) + if (IsDocking(*i.pWin)) return false; return true; } @@ -301,9 +301,9 @@ void Layout::SplittedSide::ArrangeIn (Rectangle const& rRect) // positioning separator lines and windows bool bPrevDocking = false; // is the previous window docked? long nStartPos = 0; // window position in the strip - unsigned iLastWin = vItems.size(); // index of last docking window in the strip + std::vector<Item>::size_type iLastWin = vItems.size(); // index of last docking window in the strip - for (unsigned i = 0; i != vItems.size(); ++i) + for (std::vector<Item>::size_type i = 0; i != vItems.size(); ++i) { // window DockingWindow& rWin = *vItems[i].pWin; |