summaryrefslogtreecommitdiff
path: root/oox/source/xls/pivotcachebuffer.cxx
diff options
context:
space:
mode:
authorDaniel Rentz [dr] <daniel.rentz@oracle.com>2011-02-07 17:18:11 +0100
committerDaniel Rentz [dr] <daniel.rentz@oracle.com>2011-02-07 17:18:11 +0100
commit7a5084f1acacb0858588d4d0c82651e47ca9914f (patch)
treea92a5c9040270413f47cbf9eacc2605896c7ebb9 /oox/source/xls/pivotcachebuffer.cxx
parent09f7fc99c442d71852396d97ee1079f0d03901a0 (diff)
dr78: rework of stream handling, improve handling of very large streams (prevent loading entire stream into array or string, esp. dumper and VML import), full support of XComponentContext
Diffstat (limited to 'oox/source/xls/pivotcachebuffer.cxx')
-rw-r--r--oox/source/xls/pivotcachebuffer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/xls/pivotcachebuffer.cxx b/oox/source/xls/pivotcachebuffer.cxx
index e8ca3539e167..5e5e5efef546 100644
--- a/oox/source/xls/pivotcachebuffer.cxx
+++ b/oox/source/xls/pivotcachebuffer.cxx
@@ -737,7 +737,7 @@ void PivotCacheField::importPCDFRangePr( BiffInputStream& rStrm )
void PivotCacheField::importPCDFDiscretePr( BiffInputStream& rStrm )
{
- sal_Int32 nCount = static_cast< sal_Int32 >( rStrm.getLength() / 2 );
+ sal_Int32 nCount = static_cast< sal_Int32 >( rStrm.size() / 2 );
for( sal_Int32 nIndex = 0; !rStrm.isEof() && (nIndex < nCount); ++nIndex )
maDiscreteItems.push_back( rStrm.readuInt16() );
}