diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-19 16:29:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-20 07:50:03 +0100 |
commit | 866e17cfdbd972e520a8c6fcde202d7ccc7e40ad (patch) | |
tree | 684f803e3f26847969b52fe8299d073826db0772 /svl/source | |
parent | 59e68b30d6695efa65244cf7132417036b0fba63 (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/source')
-rw-r--r-- | svl/source/items/ilstitem.cxx | 2 |
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; } |