diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-10-26 21:49:43 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-27 06:17:46 +0000 |
commit | f53cd8826b45007d70adf2ec7b41377150d2ed67 (patch) | |
tree | 2b8d37ecd399d3cce870906bb81abddc39329f3e /svl | |
parent | 883172375dbf5c0a79cbda5b615ff26ed27c78be (diff) |
remove unused variable
aSet unused since
2ebd79b3d214c62c0997606115ebc50700d6a760
loplugin:constantfunction: svl
Change-Id: I48faf8775465ec1d5e3df94343a4373a87d03e6d
Reviewed-on: https://gerrit.libreoffice.org/30310
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/itemprop.cxx | 9 |
1 files 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 ) |