summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-19 11:08:43 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-19 15:37:52 +0000
commit742f22b474ede538382a6bd8ee550ce3924355a8 (patch)
tree5a554169b4c2746c4f633e8513b0da1e59f75a54 /svx
parent947ab4b38955677cb041e1a061c3f8fe71eb1b6f (diff)
coverity#704841 Dereference after null check
Change-Id: I40b98b73f38c384625e3d2187684cc070fb57334
Diffstat (limited to 'svx')
-rw-r--r--svx/source/unodraw/unopool.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/unodraw/unopool.cxx b/svx/source/unodraw/unopool.cxx
index 4a14b589b2dd..ad3a3e562925 100644
--- a/svx/source/unodraw/unopool.cxx
+++ b/svx/source/unodraw/unopool.cxx
@@ -118,7 +118,7 @@ void SvxUnoDrawPool::getAny( SfxItemPool* pPool, const comphelper::PropertyMapEn
}
default:
{
- const SfxMapUnit eMapUnit = pPool ? pPool->GetMetric((sal_uInt16)pEntry->mnHandle) : SFX_MAPUNIT_100TH_MM;
+ const SfxMapUnit eMapUnit = pPool->GetMetric((sal_uInt16)pEntry->mnHandle);
sal_uInt8 nMemberId = pEntry->mnMemberId & (~SFX_METRIC_ITEM);
if( eMapUnit == SFX_MAPUNIT_100TH_MM )