diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-11-30 09:08:43 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-11-30 10:43:43 +0000 |
commit | b18b1e80e9f3359fdfc06dc36dd4f0c15e9344af (patch) | |
tree | fdddf4fde93715d21a53a68a38f1104fbed151bb /svl | |
parent | 032b63195ea7e23ed677d0c3d89ca0f0bfd0fa20 (diff) |
sw: use auto when initializing with a cast to avoid duplicating the type name
Change-Id: Ide7bd0f1f444824b78aa53cfe1db0129cbca1a5d
Reviewed-on: https://gerrit.libreoffice.org/31397
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/grabbagitem.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/items/grabbagitem.cxx b/svl/source/items/grabbagitem.cxx index 082c42207d9f..6d69fcd9f5ac 100644 --- a/svl/source/items/grabbagitem.cxx +++ b/svl/source/items/grabbagitem.cxx @@ -28,7 +28,7 @@ SfxGrabBagItem::~SfxGrabBagItem() = default; bool SfxGrabBagItem::operator==(const SfxPoolItem& rItem) const { - const SfxGrabBagItem* pItem = static_cast<const SfxGrabBagItem*>(&rItem); + auto pItem = static_cast<const SfxGrabBagItem*>(&rItem); return m_aMap == pItem->m_aMap; } |