summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-09-30 19:27:23 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-09-30 21:45:07 +0200
commitd8be0f46db22c1d73816acd5df37f7082dc46c23 (patch)
tree3e8ea70f6b3831fcdbdafdba581d128a116c828c /sw/source
parent9f2b1f30c98a351ec0330db9f131d608c29a3336 (diff)
cid#1546839 Logically dead code
Change-Id: Id4c97f0f18a88ee973acdb9a8e703f0ed3c5ee1d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157436 Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/attr/swatrset.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/attr/swatrset.cxx b/sw/source/core/attr/swatrset.cxx
index 28f7b2dfc9eb..b08026a1bd34 100644
--- a/sw/source/core/attr/swatrset.cxx
+++ b/sw/source/core/attr/swatrset.cxx
@@ -322,7 +322,7 @@ int SwAttrSet::Intersect_BC( const SfxItemSet& rSet,
SfxItemSet::Intersect( rSet );
clearCallback();
m_pOldSet = m_pNewSet = nullptr;
- return pNew ? pNew->Count() : ( pOld ? pOld->Count() : 0 );
+ return pNew ? pNew->Count() : pOld->Count();
}
/** special treatment for some attributes