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 --- chart2/source/controller/accessibility/AccessibleBase.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'chart2/source/controller/accessibility/AccessibleBase.cxx') diff --git a/chart2/source/controller/accessibility/AccessibleBase.cxx b/chart2/source/controller/accessibility/AccessibleBase.cxx index c14f9da137c2..ad2da3791873 100644 --- a/chart2/source/controller/accessibility/AccessibleBase.cxx +++ b/chart2/source/controller/accessibility/AccessibleBase.cxx @@ -293,7 +293,7 @@ bool AccessibleBase::ImplUpdateChildren() void AccessibleBase::AddChild( AccessibleBase * pChild ) { - OSL_ENSURE( pChild != NULL, "Invalid Child" ); + OSL_ENSURE( pChild != nullptr, "Invalid Child" ); if( pChild ) { ClearableMutexGuard aGuard( GetMutex() ); @@ -467,12 +467,12 @@ void SAL_CALL AccessibleBase::disposing() } // reset pointers - m_aAccInfo.m_pParent = NULL; + m_aAccInfo.m_pParent = nullptr; // invalidate implementation for helper, but keep UNO reference to still // allow a tool to query the DEFUNC state. // Note: The object will be deleted when the last reference is released - m_pStateSetHelper = NULL; + m_pStateSetHelper = nullptr; // attach new empty state set helper to member reference ::utl::AccessibleStateSetHelper * pHelper = new ::utl::AccessibleStateSetHelper(); @@ -739,13 +739,13 @@ awt::Point SAL_CALL AccessibleBase::getLocationOnScreen() { CheckDisposeState(); - if( m_aAccInfo.m_pParent != NULL ) + if( m_aAccInfo.m_pParent != nullptr ) { AccessibleBase * pParent = m_aAccInfo.m_pParent; awt::Point aLocThisRel( getLocation()); awt::Point aUpperLeft; - if( pParent != NULL ) + if( pParent != nullptr ) aUpperLeft = pParent->getLocationOnScreen(); return awt::Point( aUpperLeft.X + aLocThisRel.X, -- cgit