summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2023-12-30 09:49:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-12-30 13:45:53 +0100
commit7de4661827c5bed7beaf2c286242e48cfe4154e8 (patch)
tree071e77672649bd2b59f0aa4aa4ed5ab7d9cc80f8 /tools
parent39d0ab03fd064ff0582d98d5c52a0d3747e73999 (diff)
no need to use SvLockBytes in forms
Change-Id: Ide586997d504e0fbdb72aa1db77c49ba3d6007c1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161437 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/inet/inetstrm.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/source/inet/inetstrm.cxx b/tools/source/inet/inetstrm.cxx
index ac33f5eda4a3..f4a841da9331 100644
--- a/tools/source/inet/inetstrm.cxx
+++ b/tools/source/inet/inetstrm.cxx
@@ -75,10 +75,7 @@ int INetMIMEMessageStream::GetBodyLine(char* pData, sal_uInt32 nSize)
if (pSourceMsg->GetDocumentLB())
{
- if (pMsgStrm == nullptr)
- pMsgStrm.reset(new SvStream (pSourceMsg->GetDocumentLB()));
-
- sal_uInt32 nRead = pMsgStrm->ReadBytes(pWBuf, (pWEnd - pWBuf));
+ sal_uInt32 nRead = pSourceMsg->GetDocumentLB()->ReadBytes(pWBuf, (pWEnd - pWBuf));
pWBuf += nRead;
}