From a945fbf59ca0847da961d905c44ca1eb947bb369 Mon Sep 17 00:00:00 2001 From: Maciej Rumianowski Date: Tue, 19 Jul 2011 10:50:54 +0200 Subject: Get rid of SvULongs in calc Instead of SvULongs use ::std::vector < sal_Int32 > --- sc/source/ui/docshell/impex.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'sc/source/ui/docshell') diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx index 7bec48d4846c..72b09a253cbf 100644 --- a/sc/source/ui/docshell/impex.cxx +++ b/sc/source/ui/docshell/impex.cxx @@ -49,8 +49,6 @@ class StarBASIC; #include #include #include -#define _SVSTDARR_ULONGS -#include #include #include #include @@ -58,6 +56,7 @@ class StarBASIC; #include #include #include +#include #include "global.hxx" #include "scerrors.hxx" @@ -1544,7 +1543,7 @@ sal_Bool ScImportExport::Sylk2Doc( SvStream& rStrm ) SCROW nEndRow = aRange.aEnd.Row(); sal_uLong nOldPos = rStrm.Tell(); sal_Bool bData = sal_Bool( !bSingle ); - SvULongs aFormats; + ::std::vector< sal_uInt32 > aFormats; if( !bSingle) bOk = StartPaste(); @@ -1730,9 +1729,9 @@ sal_Bool ScImportExport::Sylk2Doc( SvStream& rStrm ) if( nCol > nEndCol ) nEndCol = nCol; } - if ( 0 <= nFormat && nFormat < aFormats.Count() ) + if ( 0 <= nFormat && nFormat < (sal_Int32)aFormats.size() ) { - sal_uLong nKey = aFormats[(sal_uInt16)nFormat]; + sal_uInt32 nKey = aFormats[nFormat]; pDoc->ApplyAttr( nCol, nRow, aRange.aStart.Tab(), SfxUInt32Item( ATTR_VALUE_FORMAT, nKey ) ); } @@ -1759,7 +1758,7 @@ sal_Bool ScImportExport::Sylk2Doc( SvStream& rStrm ) ScGlobal::eLnge ); if ( nCheckPos ) nKey = 0; - aFormats.Insert( nKey, aFormats.Count() ); + aFormats.push_back( nKey ); } } else if( cTag == 'I' && *p == 'D' ) -- cgit