diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-03-02 15:08:46 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-03-02 15:26:03 +0100 |
commit | 7d79ae437e16191a62dbe3ec81f9b82e79daf7ea (patch) | |
tree | 4afb92fc5dfb8c27b06feeefd94a6cf66d97d35c | |
parent | d5da8959c607d11d257187ef15f7d89fa8420ba1 (diff) |
sw: PVS V656 Variables initialized through call to same function
(regression from c2ccd20c0fd92bddfff76447754541705e3eb8f3)
Change-Id: I78ac92869b0e9b56df708aa7d2d35b45bfb5f751
-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 54976460452b..1f23490c2a3d 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; |