From b090fcf34f105f7937ddd1d5e814fce3970b5894 Mon Sep 17 00:00:00 2001 From: Nigel Hawkins Date: Mon, 8 Aug 2011 11:34:59 +0100 Subject: Replace SvUShorts with vector in editeng.hxx and cascade changes. LGPLv3+/MPL --- sd/source/filter/html/htmlex.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'sd/source') diff --git a/sd/source/filter/html/htmlex.cxx b/sd/source/filter/html/htmlex.cxx index 41a14f3e4801..8054c1af637f 100644 --- a/sd/source/filter/html/htmlex.cxx +++ b/sd/source/filter/html/htmlex.cxx @@ -72,8 +72,6 @@ #include #include #include -#define _SVSTDARR_USHORTS -#include #include #include #include // INetURLObject @@ -1365,14 +1363,13 @@ String HtmlExport::ParagraphToHTMLString( SdrOutliner* pOutliner, sal_uLong nPar return aStr; HtmlState aState( (mbUserAttr || mbDocColors) ? maTextColor : Color(COL_BLACK) ); - SvUShorts aPortionList; + std::vector aPortionList; rEditEngine.GetPortions( (sal_uInt16) nPara, aPortionList ); - sal_uInt16 nPortionCount = aPortionList.Count(); sal_uInt16 nPos1 = 0; - for( sal_uInt16 nPortion = 0; nPortion < nPortionCount; nPortion++ ) + for( std::vector::const_iterator it( aPortionList.begin() ); it != aPortionList.end(); ++it ) { - sal_uInt16 nPos2 = aPortionList.GetObject(nPortion); + sal_uInt16 nPos2 = *it; ESelection aSelection( (sal_uInt16) nPara, nPos1, (sal_uInt16) nPara, nPos2); -- cgit