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

tdf#120703 (PVS): redundant nullptr check

V668 There is no sense in testing the 'pDest' 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: I17773f92ed73359e925ad779d171ec99727f7905
Reviewed-on: https://gerrit.libreoffice.org/62133
Tested-by: Jenkins
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst aacbb8ba
......@@ -331,7 +331,7 @@ Graphic SvXMLGraphicOutputStream::GetGraphic()
mpOStm->Seek( 0 );
aZCodec.Decompress( *mpOStm, *pDest );
if (aZCodec.EndCompression() && pDest )
if (aZCodec.EndCompression())
{
sal_uIntPtr nStreamLen_ = pDest->TellEnd();
if (nStreamLen_)
......
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