diff options
author | Noel Grandin <noel@peralex.com> | 2012-07-19 14:26:38 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-07-26 14:30:11 +0200 |
commit | ef3990b07b1a9b05b135807765f9dd2732ee085b (patch) | |
tree | 9391376d7da8b85b2c1e345abf97804ce0b558d9 /sw/source/core/doc/docfmt.cxx | |
parent | f7f99968f2014c9e7f1f216c6ef0d2d31630087d (diff) |
Convert SV_DECL_VARARR_SORT_VISIBILITY(SvxTabStopArr) o3tl::sorted_vector
And convert it from a private superclass to a member. The code
is cleaner and easier to read as a consequence.
Change-Id: I35501a208c96615ce5797ad06d34d3b7efc2c4db
Diffstat (limited to 'sw/source/core/doc/docfmt.cxx')
-rw-r--r-- | sw/source/core/doc/docfmt.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx index 2dfc3dfa36c0..4c67d512c0e7 100644 --- a/sw/source/core/doc/docfmt.cxx +++ b/sw/source/core/doc/docfmt.cxx @@ -1136,12 +1136,9 @@ int lcl_SetNewDefTabStops( SwTwips nOldWidth, SwTwips nNewWidth, return sal_False; // Find the default's beginning - SvxTabStop* pTabs = ((SvxTabStop*)rChgTabStop.GetStart()) - + (nOldCnt-1); sal_uInt16 n; - - for( n = nOldCnt; n ; --n, --pTabs ) - if( SVX_TAB_ADJUST_DEFAULT != pTabs->GetAdjustment() ) + for( n = nOldCnt; n ; --n ) + if( SVX_TAB_ADJUST_DEFAULT != rChgTabStop[n - 1].GetAdjustment() ) break; ++n; if( n < nOldCnt ) // delete the DefTabStops |