From 59ee09f905e86724a2ba5cdccab9210d16686820 Mon Sep 17 00:00:00 2001 From: Joe Schaefer Date: Mon, 26 Nov 2012 02:32:20 +0000 Subject: mv ooo to top-level --- tools/source/inet/inetstrm.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/source/inet') diff --git a/tools/source/inet/inetstrm.cxx b/tools/source/inet/inetstrm.cxx index 7f96aa418a6b..f9bfbdfadc1c 100644 --- a/tools/source/inet/inetstrm.cxx +++ b/tools/source/inet/inetstrm.cxx @@ -410,7 +410,7 @@ INetMessageOStream::~INetMessageOStream (void) if (pTargetMsg) { SvOpenLockBytes *pLB = - PTR_CAST (SvOpenLockBytes, pTargetMsg->GetDocumentLB()); + dynamic_cast< SvOpenLockBytes* >( pTargetMsg->GetDocumentLB()); if (pLB) { pLB->Flush(); @@ -555,7 +555,7 @@ int INetMessageOStream::PutMsgLine (const sal_Char *pData, sal_uIntPtr nSize) else { SvOpenLockBytes *pLB = - PTR_CAST(SvOpenLockBytes, pTargetMsg->GetDocumentLB()); + dynamic_cast< SvOpenLockBytes* >( pTargetMsg->GetDocumentLB()); if (pLB == NULL) return INETSTREAM_STATUS_WOULDBLOCK; @@ -866,7 +866,7 @@ int INetMessageDecodeQPStream_Impl::PutMsgLine ( INetMessage *pMsg = GetTargetMessage(); if (pMsg == NULL) return INETSTREAM_STATUS_ERROR; - SvOpenLockBytes * pLB = PTR_CAST(SvOpenLockBytes, pMsg->GetDocumentLB()); + SvOpenLockBytes * pLB = dynamic_cast< SvOpenLockBytes* >( pMsg->GetDocumentLB()); if (pLB == NULL) return INETSTREAM_STATUS_WOULDBLOCK; const sal_Char *pStop = pData + nSize; @@ -1196,7 +1196,7 @@ int INetMessageDecode64Stream_Impl::PutMsgLine ( INetMessage *pMsg = GetTargetMessage (); if (pMsg == NULL) return INETSTREAM_STATUS_ERROR; - SvOpenLockBytes * pLB = PTR_CAST(SvOpenLockBytes, pMsg->GetDocumentLB()); + SvOpenLockBytes * pLB = dynamic_cast< SvOpenLockBytes* >( pMsg->GetDocumentLB()); if (pLB == NULL) return INETSTREAM_STATUS_WOULDBLOCK; const sal_Char *pStop = (pData + nSize); -- cgit