From 217f7f236fd0ef0535cf11de35807bc5f1de9bb6 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 10 Nov 2015 10:14:16 +0100 Subject: loplugin:nullptr (automatic rewrite) Change-Id: I9fe00eef7ddcd4a3c87e497a8d62f98e71a0d6d8 --- editeng/source/uno/unopracc.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'editeng/source/uno/unopracc.cxx') diff --git a/editeng/source/uno/unopracc.cxx b/editeng/source/uno/unopracc.cxx index f7957a30cddb..0f2a5febfd18 100644 --- a/editeng/source/uno/unopracc.cxx +++ b/editeng/source/uno/unopracc.cxx @@ -68,15 +68,15 @@ void SAL_CALL SvxAccessibleTextPropertySet::release() // XTypeProvider uno::Sequence< uno::Type > SAL_CALL SvxAccessibleTextPropertySet::getTypes() throw ( uno::RuntimeException, std::exception ) { - static ::cppu::OTypeCollection* pTypeCollection = NULL ; + static ::cppu::OTypeCollection* pTypeCollection = nullptr ; // double-checked locking pattern. - if ( pTypeCollection == NULL ) + if ( pTypeCollection == nullptr ) { osl::MutexGuard aGuard( osl::Mutex::getGlobalMutex() ) ; // Control these pointer again ... it can be, that another instance will be faster then these! - if ( pTypeCollection == NULL ) + if ( pTypeCollection == nullptr ) { // Create a static typecollection ... static ::cppu::OTypeCollection aTypeCollection( -- cgit