diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-03-02 15:08:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-04 10:20:08 +0000 |
commit | 41bfe11ef188cdefa843f5befb8c03eb60603c22 (patch) | |
tree | 89aa73e847b8f9c240f51287849af075e4b1b67a /sw | |
parent | 160e5cb6b888ea71d6b36547b2d633246a033e14 (diff) |
sw: PVS V656 Variables initialized through call to same function
(regression from c2ccd20c0fd92bddfff76447754541705e3eb8f3)
Change-Id: I78ac92869b0e9b56df708aa7d2d35b45bfb5f751
(cherry picked from commit 7d79ae437e16191a62dbe3ec81f9b82e79daf7ea)
Reviewed-on: https://gerrit.libreoffice.org/14737
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/crsr/findattr.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/core/crsr/findattr.cxx b/sw/source/core/crsr/findattr.cxx index a0439d82b930..7c55fc306142 100644 --- a/sw/source/core/crsr/findattr.cxx +++ b/sw/source/core/crsr/findattr.cxx @@ -65,8 +65,10 @@ bool CmpAttr( const SfxPoolItem& rItem1, const SfxPoolItem& rItem2 ) static_cast<const SvxColorItem&>(rItem2).GetValue() ); case RES_PAGEDESC: bool bNumOffsetEqual = false; - ::boost::optional<sal_uInt16> oNumOffset1 = static_cast<const SwFmtPageDesc&>(rItem1).GetNumOffset(); - ::boost::optional<sal_uInt16> oNumOffset2 = static_cast<const SwFmtPageDesc&>(rItem1).GetNumOffset(); + ::boost::optional<sal_uInt16> const oNumOffset1 = + static_cast<const SwFmtPageDesc&>(rItem1).GetNumOffset(); + ::boost::optional<sal_uInt16> const oNumOffset2 = + static_cast<const SwFmtPageDesc&>(rItem2).GetNumOffset(); if (!oNumOffset1 && !oNumOffset2) { bNumOffsetEqual = true; |