diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-04-11 20:00:14 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-04-11 23:08:11 +0200 |
commit | e98e738a82885b6e7fb643bf407e504fe095803e (patch) | |
tree | 88cd7e8feddf736a7672a2d73349f5df07e65d68 /sd | |
parent | e02a6cb2c3e2b23b203b422e4e0680877f232636 (diff) |
replace some SvStream seeking with calls to remainingSize()
Change-Id: I2905e98425b9991d6138ab0adc15083d313ca445
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/eppt/epptso.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx index 05267f5767bd..52524e16b6c7 100644 --- a/sd/source/filter/eppt/epptso.cxx +++ b/sd/source/filter/eppt/epptso.cxx @@ -2506,9 +2506,7 @@ void PPTWriter::ImplWritePage( const PHLayout& rLayout, EscherSolverContainer& a SvStorageStreamRef xCompObj = xTemp->OpenSotStream( OUString( "\1CompObj" ), STREAM_READ | STREAM_NOCREATE | STREAM_SHARE_DENYALL ); - xCompObj->Seek( STREAM_SEEK_TO_END ); - sal_uInt32 nStreamLen = xCompObj->Tell(); - xCompObj->Seek( 0 ); + sal_uInt32 const nStreamLen = xCompObj->remainingSize(); sal_Int16 nVersion, nByteOrder; sal_Int32 nWinVersion, nVal, nStringLen; xCompObj->ReadInt16( nVersion ) |