From 40c4a086521703e64f7f182d8e07490855cfeb0a Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 10 Nov 2015 10:11:17 +0100 Subject: loplugin:nullptr (automatic rewrite) Change-Id: I71de514405bb9bcc746c1ab9633e7fe659888943 --- .../source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx') diff --git a/chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx b/chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx index e514d4cd7f6a..1ddeafd89397 100644 --- a/chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx +++ b/chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx @@ -46,7 +46,7 @@ void WrappedNumberFormatProperty::setPropertyValue( const Any& rOuterValue, cons { sal_Int32 nFormat = 0; if( ! (rOuterValue >>= nFormat) ) - throw lang::IllegalArgumentException( "Property 'NumberFormat' requires value of type sal_Int32", 0, 0 ); + throw lang::IllegalArgumentException( "Property 'NumberFormat' requires value of type sal_Int32", nullptr, 0 ); if(xInnerPropertySet.is()) xInnerPropertySet->setPropertyValue(getInnerName(), this->convertOuterToInnerValue(rOuterValue)); @@ -111,7 +111,7 @@ Any WrappedLinkNumberFormatProperty::getPropertyValue( const Reference< beans::X if( !xInnerPropertySet.is() ) { OSL_FAIL("missing xInnerPropertySet in WrappedNumberFormatProperty::getPropertyValue"); - return getPropertyDefault(0); + return getPropertyDefault(nullptr); } return xInnerPropertySet->getPropertyValue(getInnerName()); -- cgit