diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-18 14:37:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-18 15:36:19 +0100 |
commit | efa9f14b2a025f8b35a8dc119d6319539f02abd4 (patch) | |
tree | 1fef4b504f2531dac58adcf01df833e53634cedc /sc/qa | |
parent | 59e8f814b088ed0e91b1261e42c5040c9abeb5e7 (diff) |
coverity#1209494 Explicit null dereferenced
Change-Id: I127066b71d34e5a4247a8eedc2fba23ed3c8255f
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/unit/ucalc.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index d2a168f0b2fa..65c91a4e1f8c 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -5248,7 +5248,7 @@ void Test::testSortWithCellFormats() } const SfxPoolItem* pItem = NULL; - if (pPat->GetItemSet().HasItem(ATTR_FONT_WEIGHT)) + if (pPat->GetItemSet().HasItem(ATTR_FONT_WEIGHT, &pItem)) { // Check if the font weight is applied. if (static_cast<const SvxWeightItem*>(pItem)->GetEnumValue() == WEIGHT_BOLD) @@ -5258,7 +5258,7 @@ void Test::testSortWithCellFormats() } } - if (pPat->GetItemSet().HasItem(ATTR_FONT_POSTURE)) + if (pPat->GetItemSet().HasItem(ATTR_FONT_POSTURE, &pItem)) { // Check if the italics is applied. if (static_cast<const SvxPostureItem*>(pItem)->GetEnumValue() == ITALIC_NORMAL) |