WaE: C6011 Dereferencing NULL pointer warnings
Change-Id: I710ff75d387b2d452cb80911c9f0092948453ef8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167751 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins
This commit is contained in:
@@ -63,6 +63,7 @@ uno::Reference<drawing::XShape> TestScene3d::getShape(sal_uInt8 nShapeIndex, sal
|
||||
void TestScene3d::getShapeAsBitmap(BitmapEx& rBMP, sal_uInt8 nShapeIndex)
|
||||
{
|
||||
SfxViewShell* pViewShell = SfxViewShell::Current();
|
||||
CPPUNIT_ASSERT(pViewShell);
|
||||
SdrView* pSdrView = pViewShell->GetDrawView();
|
||||
|
||||
// Mark object and convert it to bitmap
|
||||
|
||||
@@ -100,7 +100,9 @@ CPPUNIT_TEST_FIXTURE(VclFilterIpdfTest, testPDFAddVisibleSignatureLastPage)
|
||||
{
|
||||
return;
|
||||
}
|
||||
SdrView* pView = SfxViewShell::Current()->GetDrawView();
|
||||
SfxViewShell* pCurrent = SfxViewShell::Current();
|
||||
CPPUNIT_ASSERT(pCurrent);
|
||||
SdrView* pView = pCurrent->GetDrawView();
|
||||
svx::SignatureLineHelper::setShapeCertificate(pView, xCert);
|
||||
|
||||
// the document is modified now, but Sign function can't show SaveAs dialog
|
||||
|
||||
@@ -755,7 +755,9 @@ CPPUNIT_TEST_FIXTURE(SigningTest, testPDFAddVisibleSignature)
|
||||
{
|
||||
return;
|
||||
}
|
||||
SdrView* pView = SfxViewShell::Current()->GetDrawView();
|
||||
SfxViewShell* pCurrent = SfxViewShell::Current();
|
||||
CPPUNIT_ASSERT(pCurrent);
|
||||
SdrView* pView = pCurrent->GetDrawView();
|
||||
svx::SignatureLineHelper::setShapeCertificate(pView, aCertificates[0]);
|
||||
|
||||
// the document is modified now, but Sign function can't show SaveAs dialog
|
||||
|
||||
Reference in New Issue
Block a user