summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-10-21 12:04:15 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2018-10-21 15:25:13 +0200
commit630f506ff2e505b093ab54a5d4394adcd7dd0be2 (patch)
tree75925203bdf4dd9abed23c9d51009926f2e32d20 /filter
parent4c5ad24111addbf7d171b833da812fe5ba6e36b1 (diff)
tdf#120703 (PVS): redundant nullptr check
V668 There is no sense in testing the 'aNewSdrGrafObj' 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: I78159c7bd19bacea7120abc8015b866e6179c719 Reviewed-on: https://gerrit.libreoffice.org/62128 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/svg/svgfilter.cxx6
1 files changed, 0 insertions, 6 deletions
diff --git a/filter/source/svg/svgfilter.cxx b/filter/source/svg/svgfilter.cxx
index b638794c8385..4f7b8982f1ae 100644
--- a/filter/source/svg/svgfilter.cxx
+++ b/filter/source/svg/svgfilter.cxx
@@ -260,12 +260,6 @@ sal_Bool SAL_CALL SVGFilter::filter( const Sequence< PropertyValue >& rDescripto
new SdrGrafObj(
pTargetSdrPage->getSdrModelFromSdrPage(),
aGraphic));
-
- if (!aNewSdrGrafObj)
- {
- // could not create GraphicObject
- break;
- }
}
// Evtl. adapt the GraphicPrefSize to target-MapMode of target-Model