summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-06-25 15:54:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-06-25 21:13:52 +0200
commitc38d0d501f5eca648bdf0fd2914b57e06f505f7e (patch)
tree9fa4e90220c0aa7fd797f5d8cd24b8b9dbf3f10d /sd
parentbbddb67a59655660ea028bcf1ca23c0f75a29779 (diff)
new doesn't return null on failure
Change-Id: I9d77274f41fe66251eeb63a8f17abb331044cd27 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117903 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/pdf/sdpdffilter.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/sd/source/filter/pdf/sdpdffilter.cxx b/sd/source/filter/pdf/sdpdffilter.cxx
index 9725bcc8b998..eb64897db853 100644
--- a/sd/source/filter/pdf/sdpdffilter.cxx
+++ b/sd/source/filter/pdf/sdpdffilter.cxx
@@ -85,8 +85,6 @@ bool SdPdfFilter::Import()
SdrGrafObj* pSdrGrafObj = new SdrGrafObj(pPage->getSdrModelFromSdrPage(), rGraphic,
tools::Rectangle(Point(), aSizeHMM));
- if (!pSdrGrafObj) // out of memory
- return false;
pSdrGrafObj->SetResizeProtect(true);
pSdrGrafObj->SetMoveProtect(true);