From f53cd8826b45007d70adf2ec7b41377150d2ed67 Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Wed, 26 Oct 2016 21:49:43 +0200 Subject: [PATCH] remove unused variable aSet unused since 2ebd79b3d214c62c0997606115ebc50700d6a760 loplugin:constantfunction: svl Change-Id: I48faf8775465ec1d5e3df94343a4373a87d03e6d Reviewed-on: https://gerrit.libreoffice.org/30310 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svl/source/items/itemprop.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/svl/source/items/itemprop.cxx b/svl/source/items/itemprop.cxx index c3ec9b69cec3..e6ac2eddcc49 100644 --- a/svl/source/items/itemprop.cxx +++ b/svl/source/items/itemprop.cxx @@ -187,15 +187,12 @@ void SfxItemPropertySet::getPropertyValue( const SfxItemPropertySimpleEntry& rEn { pItem->QueryValue( rAny, rEntry.nMemberId ); } - else + else if(0 == (rEntry.nFlags & PropertyAttribute::MAYBEVOID)) { - SfxItemSet aSet(*rSet.GetPool(), rEntry.nWID, rEntry.nWID); - if(0 == (rEntry.nFlags & PropertyAttribute::MAYBEVOID)) - throw RuntimeException( - "Property not found in ItemSet but not MAYBEVOID?", nullptr); + throw RuntimeException( + "Property not found in ItemSet but not MAYBEVOID?", nullptr); } - // convert general SfxEnumItem values to specific values if( rEntry.aType.getTypeClass() == TypeClass_ENUM && rAny.getValueTypeClass() == TypeClass_LONG )