From 08e49fa3377d8c4e7e5df7a32233fcd9763ee936 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 10 Nov 2015 10:10:36 +0100 Subject: loplugin:nullptr (automatic rewrite) Change-Id: I1ec9a671fe3ac838feb36297915e3cdf8749d944 --- basic/source/sbx/sbxexec.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'basic/source/sbx/sbxexec.cxx') diff --git a/basic/source/sbx/sbxexec.cxx b/basic/source/sbx/sbxexec.cxx index 9c64095768f4..01f60db422b9 100644 --- a/basic/source/sbx/sbxexec.cxx +++ b/basic/source/sbx/sbxexec.cxx @@ -146,7 +146,7 @@ static SbxVariable* Operand // This is perhaps an error if( !*p ) { - return NULL; + return nullptr; } // Double quotes are OK if( *p == '"' ) @@ -261,7 +261,7 @@ static SbxVariable* Assign( SbxObject* pObj, SbxObject* pGbl, const sal_Unicode* SbxVariable* pVar = refVar; SbxVariable* pVar2 = refVar2; *pVar = *pVar2; - pVar->SetParameters( NULL ); + pVar->SetParameters( nullptr ); } } } @@ -297,7 +297,7 @@ static SbxVariable* Element pObj->SetFlags( nOld ); if( refVar.Is() ) { - refVar->SetParameters( NULL ); + refVar->SetParameters( nullptr ); // Follow still parameter? p = SkipWhitespace( p ); if( *p == '(' ) @@ -347,7 +347,7 @@ static SbxVariable* Element SbxVariable* SbxObject::Execute( const OUString& rTxt ) { - SbxVariable* pVar = NULL; + SbxVariable* pVar = nullptr; const sal_Unicode* p = rTxt.getStr(); for( ;; ) { @@ -376,12 +376,12 @@ SbxVariable* SbxObject::Execute( const OUString& rTxt ) SbxVariable* SbxObject::FindQualified( const OUString& rName, SbxClassType t ) { - SbxVariable* pVar = NULL; + SbxVariable* pVar = nullptr; const sal_Unicode* p = rName.getStr(); p = SkipWhitespace( p ); if( !*p ) { - return NULL;; + return nullptr;; } pVar = QualifiedName( this, this, &p, t ); p = SkipWhitespace( p ); -- cgit