[Libreoffice-commits] core.git: svl/source
Noel Grandin
noel.grandin at collabora.co.uk
Tue Mar 20 06:50:25 UTC 2018
svl/source/items/ilstitem.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 866e17cfdbd972e520a8c6fcde202d7ccc7e40ad
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date: Mon Mar 19 16:29:07 2018 +0200
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 at libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
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;
}
More information about the Libreoffice-commits
mailing list