diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-08 21:36:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-09 08:46:25 +0200 |
commit | 115a8539038ecdd5e496fb6c84101c5b14d11068 (patch) | |
tree | 944afc61a076767be211140483ee892d14100aca /editeng | |
parent | e463ab92c3be84c603fe855464c213efb93b2120 (diff) |
std::list->std::vector in SubsetMap
Change-Id: I3fa98b787707dcbc555abe6aaa3a11e0fe467308
Reviewed-on: https://gerrit.libreoffice.org/52606
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/uno/unoedsrc.cxx | 4 | ||||
-rw-r--r-- | editeng/source/uno/unotext2.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/editeng/source/uno/unoedsrc.cxx b/editeng/source/uno/unoedsrc.cxx index 9e2aa24b34ad..1c827472d11b 100644 --- a/editeng/source/uno/unoedsrc.cxx +++ b/editeng/source/uno/unoedsrc.cxx @@ -34,9 +34,9 @@ void SvxEditSource::removeRange( SvxUnoTextRangeBase* ) } -const SvxUnoTextRangeBaseList& SvxEditSource::getRanges() const +const SvxUnoTextRangeBaseVec& SvxEditSource::getRanges() const { - static SvxUnoTextRangeBaseList gList; + static SvxUnoTextRangeBaseVec gList; return gList; } diff --git a/editeng/source/uno/unotext2.cxx b/editeng/source/uno/unotext2.cxx index 908485f86683..9c2c26151cfd 100644 --- a/editeng/source/uno/unotext2.cxx +++ b/editeng/source/uno/unotext2.cxx @@ -51,7 +51,7 @@ SvxUnoTextContentEnumeration::SvxUnoTextContentEnumeration( const SvxUnoTextBase { if( currentPara>=maSelection.nStartPara && currentPara<=maSelection.nEndPara ) { - const SvxUnoTextRangeBaseList& rRanges( mpEditSource->getRanges() ); + const SvxUnoTextRangeBaseVec& rRanges( mpEditSource->getRanges() ); SvxUnoTextContent* pContent = nullptr; sal_Int32 nStartPos = 0; sal_Int32 nEndPos = mrText.GetEditSource()->GetTextForwarder()->GetTextLen( currentPara ); @@ -405,7 +405,7 @@ SvxUnoTextRangeEnumeration::SvxUnoTextRangeEnumeration(const SvxUnoTextBase& rTe nEndPos = std::min<sal_uInt16>(nEndPos, mnSel.nEndPos); ESelection aSel( mnParagraph, nStartPos, mnParagraph, nEndPos ); - const SvxUnoTextRangeBaseList& rRanges( mpEditSource->getRanges() ); + const SvxUnoTextRangeBaseVec& rRanges( mpEditSource->getRanges() ); SvxUnoTextRange* pRange = nullptr; for (auto const& elemRange : rRanges) { |