summaryrefslogtreecommitdiff
path: root/oox/source/core/recordparser.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2010-05-21 16:13:20 +0200
committerKurt Zenker <kz@openoffice.org>2010-05-21 16:13:20 +0200
commitf98601b66a4bdfea70771cac44eb8f45faf70e33 (patch)
tree0bcef7751aea4e47f3106a0981cee6b2cc421540 /oox/source/core/recordparser.cxx
parente12896d4e2571451e2453d3b14a7e24f7371a4a4 (diff)
parent83354fbd6ef66db25643b1fe9ab30c45550a5a58 (diff)
CWS-TOOLING: integrate CWS npower13_objectmodules
Notes
split repo tag: filters_ooo/DEV300_m79
Diffstat (limited to 'oox/source/core/recordparser.cxx')
-rw-r--r--oox/source/core/recordparser.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/oox/source/core/recordparser.cxx b/oox/source/core/recordparser.cxx
index b1749ae7be07..8f0de9c2894a 100644
--- a/oox/source/core/recordparser.cxx
+++ b/oox/source/core/recordparser.cxx
@@ -277,7 +277,6 @@ void RecordParser::parseStream( const RecordInputSource& rInputSource ) throw( S
// try to leave a context, there may be other incomplete contexts on the stack
if( const RecordInfo* pEndRecInfo = getEndRecordInfo( nRecId ) )
{
- (void)pEndRecInfo; // shut warning up in non-debug
// finalize contexts without record identifier for context end
while( !mxStack->empty() && !mxStack->hasCurrentEndRecId() )
mxStack->popContext();
@@ -288,7 +287,7 @@ void RecordParser::parseStream( const RecordInputSource& rInputSource ) throw( S
if( xCurrContext.is() )
{
// context end record may contain some data, handle it as simple record
- aRecStrm.seek( 0 );
+ aRecStrm.seekToStart();
xCurrContext->startRecord( nRecId, aRecStrm );
xCurrContext->endRecord( nRecId );
}
@@ -303,7 +302,7 @@ void RecordParser::parseStream( const RecordInputSource& rInputSource ) throw( S
ContextHandlerRef xCurrContext = mxStack->getCurrentContext();
if( xCurrContext.is() )
{
- aRecStrm.seek( 0 );
+ aRecStrm.seekToStart();
xCurrContext = xCurrContext->createRecordContext( nRecId, aRecStrm );
}
// track all context identifiers on the stack (do not push simple records)
@@ -314,7 +313,7 @@ void RecordParser::parseStream( const RecordInputSource& rInputSource ) throw( S
if( xCurrContext.is() )
{
// import the record
- aRecStrm.seek( 0 );
+ aRecStrm.seekToStart();
xCurrContext->startRecord( nRecId, aRecStrm );
// end simple records (context records are finished in ContextStack::popContext)
if( !pStartRecInfo )