From 04cf6de098f0677b2623377c20983f229f0156be Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sun, 17 Mar 2019 21:36:10 +0300 Subject: tdf#120703 PVS: remove redundant static casts V572 It is odd that the object which was created using 'new' operator is immediately cast to another type. Change-Id: I6d1523e71b3e06be1cf41abaabb44e49fe11cd8e Reviewed-on: https://gerrit.libreoffice.org/69369 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- embeddedobj/source/msole/olevisual.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'embeddedobj') diff --git a/embeddedobj/source/msole/olevisual.cxx b/embeddedobj/source/msole/olevisual.cxx index 6fe1bc40bb8c..879d0b0ce9ec 100644 --- a/embeddedobj/source/msole/olevisual.cxx +++ b/embeddedobj/source/msole/olevisual.cxx @@ -367,8 +367,8 @@ embed::VisualRepresentation SAL_CALL OleEmbeddedObject::getPreferredVisualRepres if ( aVisReplSeq.getLength() ) { m_xCachedVisualRepresentation = GetNewFilledTempStream_Impl( - uno::Reference< io::XInputStream > ( static_cast< io::XInputStream* > ( - new ::comphelper::SequenceInputStream( aVisReplSeq ) ) ) ); + uno::Reference< io::XInputStream >( + new ::comphelper::SequenceInputStream(aVisReplSeq))); } return aVisualRepr; -- cgit v1.2.3