diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-06-19 13:52:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-19 18:13:52 +0200 |
commit | 7af0f1514407660a43cde90320bbe00c36c3be28 (patch) | |
tree | fbcf41d83527196920ca0a6daeffb2bce36f20cc /sfx2/source | |
parent | 8fa14ac550ddc43790b65858f18d23f522aff1f2 (diff) |
use more TellEnd()
which has the potential to be more efficient than STREAM_SEEK_TO_END
Change-Id: I64d84632bc4751e07309332c9dff7a02bcd507fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117496
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/doc/oleprops.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sfx2/source/doc/oleprops.cxx b/sfx2/source/doc/oleprops.cxx index ee1927522e05..6de4aace5c99 100644 --- a/sfx2/source/doc/oleprops.cxx +++ b/sfx2/source/doc/oleprops.cxx @@ -1018,8 +1018,7 @@ void SfxOleSection::ImplSave( SvStream& rStrm ) SaveProperty( rStrm, *prop.second, nPropPosPos ); // write section size (first field in section header) - rStrm.Seek( STREAM_SEEK_TO_END ); - sal_uInt32 nSectSize = static_cast< sal_uInt32 >( rStrm.Tell() - mnStartPos ); + sal_uInt32 nSectSize = static_cast< sal_uInt32 >( rStrm.TellEnd() - mnStartPos ); rStrm.Seek( mnStartPos ); rStrm.WriteUInt32( nSectSize ); } |