From 978e7b03f8c966ec23b6781d67f612e4665a09f7 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 20 Jun 2016 18:17:59 +0200 Subject: This code unlikely wants conversion from UNO Bool or Char Anys ...which would be the main difference with convertPropertyValue, in addition to throwing an exception upon failure that would be caught directly by the surrounding try-catch block Change-Id: I960e23b797c71be655c4059125effade84d0630c --- sd/source/filter/eppt/pptexsoundcollection.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sd/source/filter/eppt/pptexsoundcollection.cxx b/sd/source/filter/eppt/pptexsoundcollection.cxx index 5475c5ea175c..2027ff3dd58c 100644 --- a/sd/source/filter/eppt/pptexsoundcollection.cxx +++ b/sd/source/filter/eppt/pptexsoundcollection.cxx @@ -23,7 +23,6 @@ #include #include #include -#include #include namespace ppt @@ -39,7 +38,7 @@ ExSoundEntry::ExSoundEntry(const OUString& rString) css::uno::Reference< css::ucb::XCommandEnvironment >(), comphelper::getProcessComponentContext() ); sal_Int64 nVal = 0; - ::cppu::convertPropertyValue( nVal, aCnt.getPropertyValue("Size") ); + aCnt.getPropertyValue("Size") >>= nVal; nFileSize = (sal_uInt32)nVal; } catch( css::uno::Exception& ) -- cgit