From 9ec8bf8f22fe74884185492ef2576ce79b41e4f1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 11 Oct 2018 18:49:34 +0200 Subject: add SvStream::TellEnd and simplify callsites to use it instead of the current "seek to end, find pos, seek back to original pos" pattern Change-Id: Ib5828868f73c341891efc759af8bd4695ae2f33c Reviewed-on: https://gerrit.libreoffice.org/61738 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/source/edit/textview.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'vcl/source/edit') diff --git a/vcl/source/edit/textview.cxx b/vcl/source/edit/textview.cxx index 5eb59e3eac9e..54757b008881 100644 --- a/vcl/source/edit/textview.cxx +++ b/vcl/source/edit/textview.cxx @@ -88,8 +88,7 @@ css::uno::Any TETextDataObject::getTransferData( const css::datatransfer::DataFl } else if ( nT == SotClipboardFormatId::HTML ) { - GetHTMLStream().Seek( STREAM_SEEK_TO_END ); - sal_uLong nLen = GetHTMLStream().Tell(); + sal_uLong nLen = GetHTMLStream().TellEnd(); GetHTMLStream().Seek(0); css::uno::Sequence< sal_Int8 > aSeq( nLen ); -- cgit