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 /sw/source/filter/ww8 | |
parent | e02a6cb2c3e2b23b203b422e4e0680877f232636 (diff) |
replace some SvStream seeking with calls to remainingSize()
Change-Id: I2905e98425b9991d6138ab0adc15083d313ca445
Diffstat (limited to 'sw/source/filter/ww8')
-rw-r--r-- | sw/source/filter/ww8/wrtw8esh.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sw/source/filter/ww8/wrtw8esh.cxx b/sw/source/filter/ww8/wrtw8esh.cxx index 9fd00e4881af..dfac4b3c1065 100644 --- a/sw/source/filter/ww8/wrtw8esh.cxx +++ b/sw/source/filter/ww8/wrtw8esh.cxx @@ -273,12 +273,7 @@ void SwBasicEscherEx::WriteHyperlinkWithinFly( SvMemoryStream& rStrm, const SwFm rStrm .WriteUInt32( sal_uInt32( 2 ) ) .WriteUInt32( mnFlags ); tmpStrm.Seek( STREAM_SEEK_TO_BEGIN ); - sal_uInt32 nStrmPos = tmpStrm.Tell(); - tmpStrm.Seek( STREAM_SEEK_TO_END ); - sal_uInt32 nStrmSize = tmpStrm.Tell(); - tmpStrm.Seek( nStrmPos ); - sal_uInt32 nLen; - nLen = nStrmSize - nStrmPos; + sal_uInt32 const nLen = tmpStrm.remainingSize(); if(nLen >0) { sal_uInt8* pBuffer = new sal_uInt8[ nLen ]; |