Kaydet (Commit) 63e85b85 authored tarafından Mike Kaganski's avatar Mike Kaganski

tdf#120703 (PVS): redundant nullptr check

V668 There is no sense in testing the 'pCGM' pointer against null, as the
     memory was allocated using the 'new' operator. The exception will be
     generated in the case of memory allocation error.

Change-Id: Ib07d1ceaf01f657e67572c0f5bcd6aae497d2d07
Reviewed-on: https://gerrit.libreoffice.org/62132
Tested-by: Jenkins
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst 630f506f
......@@ -695,7 +695,7 @@ ImportCGM(SvStream& rIn, uno::Reference< frame::XModel > const & rXModel, css::u
try
{
std::unique_ptr<CGM> pCGM(new CGM(rXModel));
if (pCGM && pCGM->IsValid())
if (pCGM->IsValid())
{
rIn.SetEndian(SvStreamEndian::BIG);
sal_uInt64 const nInSize = rIn.remainingSize();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment