diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-11-19 18:49:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-11-20 07:25:52 +0100 |
commit | a5f5eb28d0dcb66d5d947db7087f501ec73e00d7 (patch) | |
tree | 942488d6cdadc8c81856c8e3b3f5666bc982991a /sw/source | |
parent | 3e5edde173d8af47bc386a850874186bc406b6fb (diff) |
use the cheaper variant of SfxItemPool::areSame where possible
Change-Id: I10a357293ef176fb8aba7a683cac9a73ac3ea897
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159684
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/layout/atrfrm.cxx | 6 | ||||
-rw-r--r-- | sw/source/filter/basflt/fltshell.cxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx index ee4a451d16dc..2a1ab80763d8 100644 --- a/sw/source/core/layout/atrfrm.cxx +++ b/sw/source/core/layout/atrfrm.cxx @@ -645,7 +645,7 @@ SwFormatPageDesc::SwFormatPageDesc( const SwPageDesc *pDesc ) SwFormatPageDesc &SwFormatPageDesc::operator=(const SwFormatPageDesc &rCpy) { - if (SfxPoolItem::areSame(this, &rCpy)) + if (SfxPoolItem::areSame(*this, rCpy)) return *this; if (rCpy.GetPageDesc()) @@ -859,7 +859,7 @@ SwFormatCol::~SwFormatCol() {} SwFormatCol& SwFormatCol::operator=( const SwFormatCol& rCpy ) { - if (!SfxPoolItem::areSame(this, &rCpy)) + if (!SfxPoolItem::areSame(*this, rCpy)) { m_eLineStyle = rCpy.m_eLineStyle; m_nLineWidth = rCpy.m_nLineWidth; @@ -1644,7 +1644,7 @@ sal_Int32 SwFormatAnchor::GetAnchorContentOffset() const SwFormatAnchor& SwFormatAnchor::operator=(const SwFormatAnchor& rAnchor) { - if (!SfxPoolItem::areSame(this, &rAnchor)) + if (!SfxPoolItem::areSame(*this, rAnchor)) { m_eAnchorId = rAnchor.m_eAnchorId; m_nPageNumber = rAnchor.m_nPageNumber; diff --git a/sw/source/filter/basflt/fltshell.cxx b/sw/source/filter/basflt/fltshell.cxx index 731a7c42d770..901614897f18 100644 --- a/sw/source/filter/basflt/fltshell.cxx +++ b/sw/source/filter/basflt/fltshell.cxx @@ -915,7 +915,7 @@ void SwFltAnchorListener::Notify(const SfxHint& rHint) bool SwFltRedline::operator==(const SfxPoolItem& rItem) const { return SfxPoolItem::operator==(rItem) && - SfxPoolItem::areSame(this, &rItem); + SfxPoolItem::areSame(*this, rItem); } SwFltRedline* SwFltRedline::Clone( SfxItemPool* ) const |