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/filter/rtf | |
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/filter/rtf')
-rw-r--r-- | sw/source/filter/rtf/swparrtf.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sw/source/filter/rtf/swparrtf.cxx b/sw/source/filter/rtf/swparrtf.cxx index c210149fe91c..3498cab1beb6 100644 --- a/sw/source/filter/rtf/swparrtf.cxx +++ b/sw/source/filter/rtf/swparrtf.cxx @@ -3795,10 +3795,9 @@ void SwRTFParser::SetSwgValues( SfxItemSet& rSet ) if( nOffset ) { // Tabs anpassen !! - SvxTabStop* pTabs = (SvxTabStop*)aTStop.GetStart(); - for( sal_uInt16 n = aTStop.Count(); n; --n, ++pTabs) - if( SVX_TAB_ADJUST_DEFAULT != pTabs->GetAdjustment() ) - pTabs->GetTabPos() -= nOffset; + for( sal_uInt16 n = 0; n < aTStop.Count(); ++n) + if( SVX_TAB_ADJUST_DEFAULT != aTStop[n].GetAdjustment() ) + aTStop[n].GetTabPos() -= nOffset; // negativer Einzug, dann auf 0 Pos einen Tab setzen if( rLR.GetTxtFirstLineOfst() < 0 ) |