diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-07-26 14:21:59 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-07-26 14:30:11 +0200 |
commit | 8d832481e1f7f817821eb3202c58b2cd132bac82 (patch) | |
tree | eccc1e033f8c090655eab8b2cc129a59fa87b917 /sw/source/filter/rtf | |
parent | ef3990b07b1a9b05b135807765f9dd2732ee085b (diff) |
fix non-const accesses in previous commit:
Probably using const_cast is "good enough" here for the exising use
cases of modifying elements in a sorted_vector; not exposing non-const
accessors in sorted_vector should deter adding these in the future.
Change-Id: I613d7d40041b01109fd1d54f51c105acf56ae34a
Diffstat (limited to 'sw/source/filter/rtf')
-rw-r--r-- | sw/source/filter/rtf/swparrtf.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/filter/rtf/swparrtf.cxx b/sw/source/filter/rtf/swparrtf.cxx index 3498cab1beb6..db7178353a4d 100644 --- a/sw/source/filter/rtf/swparrtf.cxx +++ b/sw/source/filter/rtf/swparrtf.cxx @@ -3797,7 +3797,9 @@ void SwRTFParser::SetSwgValues( SfxItemSet& rSet ) // Tabs anpassen !! for( sal_uInt16 n = 0; n < aTStop.Count(); ++n) if( SVX_TAB_ADJUST_DEFAULT != aTStop[n].GetAdjustment() ) - aTStop[n].GetTabPos() -= nOffset; + { + const_cast<SvxTabStop&>(aTStop[n]).GetTabPos() -= nOffset; + } // negativer Einzug, dann auf 0 Pos einen Tab setzen if( rLR.GetTxtFirstLineOfst() < 0 ) |