diff options
author | Nigel Hawkins <n.hawkins@gmx.com> | 2011-08-08 11:34:59 +0100 |
---|---|---|
committer | Nigel Hawkins <n.hawkins@gmx.com> | 2011-08-08 20:23:05 +0100 |
commit | b090fcf34f105f7937ddd1d5e814fce3970b5894 (patch) | |
tree | 0cc8343db85a7d18b0ff195d0feadb5ff94615f9 /sw/source | |
parent | 7d2cea2bc9a9463db8e6b6e82cb8aa9504ba9b8e (diff) |
Replace SvUShorts with vector in editeng.hxx and cascade changes.
LGPLv3+/MPL
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/ui/uno/unotxdoc.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx index d7f67faac29f..603773b0c6ea 100644 --- a/sw/source/ui/uno/unotxdoc.cxx +++ b/sw/source/ui/uno/unotxdoc.cxx @@ -3177,15 +3177,15 @@ uno::Sequence< lang::Locale > SAL_CALL SwXTextDocument::getDocumentLanguages( for (sal_uLong nPar=0; nPar<nParCount; nPar++) { //every paragraph - SvUShorts aPortions; + std::vector<sal_uInt16> aPortions; rEditEng.GetPortions( (sal_uInt16)nPar, aPortions ); - for ( sal_uInt16 nPos = aPortions.Count(); nPos; ) + for ( size_t nPos = aPortions.size(); nPos; ) { //every position --nPos; - sal_uInt16 nEnd = aPortions.GetObject( nPos ); - sal_uInt16 nStart = nPos ? aPortions.GetObject( nPos - 1 ) : 0; + sal_uInt16 nEnd = aPortions[ nPos ]; + sal_uInt16 nStart = nPos ? aPortions[ nPos - 1 ] : 0; ESelection aSelection( (sal_uInt16)nPar, nStart, (sal_uInt16)nPar, nEnd ); SfxItemSet aAttr = rEditEng.GetAttribs( aSelection ); |