summaryrefslogtreecommitdiff
path: root/chart2/source/tools/ReferenceSizeProvider.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-07 10:48:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-07 11:54:20 +0000
commitb7914a9a566413eac55c7e115da1cb3552cd58df (patch)
tree0b1fcdddf5552ebcfed8966cc8e01567c4028442 /chart2/source/tools/ReferenceSizeProvider.cxx
parent65aafb507126760a293e16efe17fe7ac5ab186b5 (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/tools/ReferenceSizeProvider.cxx')
-rw-r--r--chart2/source/tools/ReferenceSizeProvider.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/chart2/source/tools/ReferenceSizeProvider.cxx b/chart2/source/tools/ReferenceSizeProvider.cxx
index 03b71adc35fd..134790941f4d 100644
--- a/chart2/source/tools/ReferenceSizeProvider.cxx
+++ b/chart2/source/tools/ReferenceSizeProvider.cxx
@@ -168,14 +168,13 @@ void ReferenceSizeProvider::getAutoResizeFromPropSet(
const Reference< beans::XPropertySet > & xProp,
ReferenceSizeProvider::AutoResizeState & rInOutState )
{
- static const char aRefSizeName[] = "ReferencePageSize";
AutoResizeState eSingleState = AUTO_RESIZE_UNKNOWN;
if( xProp.is())
{
try
{
- if( xProp->getPropertyValue( aRefSizeName ).hasValue())
+ if( xProp->getPropertyValue( "ReferencePageSize" ).hasValue())
eSingleState = AUTO_RESIZE_YES;
else
eSingleState = AUTO_RESIZE_NO;