summaryrefslogtreecommitdiff
path: root/oox/source/core/recordparser.cxx
diff options
context:
space:
mode:
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 )