summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-19 16:29:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-20 07:50:03 +0100
commit866e17cfdbd972e520a8c6fcde202d7ccc7e40ad (patch)
tree684f803e3f26847969b52fe8299d073826db0772 /svl
parent59e68b30d6695efa65244cf7132417036b0fba63 (diff)
no need to construct a new object in SfxIntegerListItem::operator==
looks like an obvious typo Change-Id: Icea0952ec8203725cf5ba1ec90bdddd82eca7b3c Reviewed-on: https://gerrit.libreoffice.org/51562 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/ilstitem.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/items/ilstitem.cxx b/svl/source/items/ilstitem.cxx
index bf95e3afd52f..21fca8aa3173 100644
--- a/svl/source/items/ilstitem.cxx
+++ b/svl/source/items/ilstitem.cxx
@@ -55,7 +55,7 @@ bool SfxIntegerListItem::operator==( const SfxPoolItem& rPoolItem ) const
if ( dynamic_cast< const SfxIntegerListItem* >( &rPoolItem) == nullptr )
return false;
- const SfxIntegerListItem rItem = static_cast<const SfxIntegerListItem&>(rPoolItem);
+ const SfxIntegerListItem & rItem = static_cast<const SfxIntegerListItem&>(rPoolItem);
return rItem.m_aList == m_aList;
}