diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-07 10:48:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-07 11:54:20 +0000 |
commit | b7914a9a566413eac55c7e115da1cb3552cd58df (patch) | |
tree | 0b1fcdddf5552ebcfed8966cc8e01567c4028442 /chart2/source/controller/chartapiwrapper/WrappedScaleTextProperties.cxx | |
parent | 65aafb507126760a293e16efe17fe7ac5ab186b5 (diff) |
loplugin:oncevar in chart2
Change-Id: Id9308f9265c2453075971c8105b4d161bd145da7
Reviewed-on: https://gerrit.libreoffice.org/30654
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/controller/chartapiwrapper/WrappedScaleTextProperties.cxx')
-rw-r--r-- | chart2/source/controller/chartapiwrapper/WrappedScaleTextProperties.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/chart2/source/controller/chartapiwrapper/WrappedScaleTextProperties.cxx b/chart2/source/controller/chartapiwrapper/WrappedScaleTextProperties.cxx index f8f83ec33fe8..a8bcfa624490 100644 --- a/chart2/source/controller/chartapiwrapper/WrappedScaleTextProperties.cxx +++ b/chart2/source/controller/chartapiwrapper/WrappedScaleTextProperties.cxx @@ -94,12 +94,10 @@ void WrappedScaleTextProperty::setPropertyValue( const Any& rOuterValue, const R Any WrappedScaleTextProperty::getPropertyValue( const Reference< beans::XPropertySet >& xInnerPropertySet ) const throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException) { - static const char aRefSizeName[] = "ReferencePageSize"; - Any aRet( getPropertyDefault( Reference< beans::XPropertyState >( xInnerPropertySet, uno::UNO_QUERY ) ) ); if( xInnerPropertySet.is() ) { - if( xInnerPropertySet->getPropertyValue( aRefSizeName ).hasValue() ) + if( xInnerPropertySet->getPropertyValue( "ReferencePageSize" ).hasValue() ) aRet <<= true; else aRet <<= false; |