summaryrefslogtreecommitdiff
path: root/basic/source/sbx/sbxexec.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:10:36 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:17 +0100
commit08e49fa3377d8c4e7e5df7a32233fcd9763ee936 (patch)
treef06399e5a005a70612093f415bd02ea2d1ba719f /basic/source/sbx/sbxexec.cxx
parenta17cde058213f962b8de880de6f5b1e4f2061b37 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I1ec9a671fe3ac838feb36297915e3cdf8749d944
Diffstat (limited to 'basic/source/sbx/sbxexec.cxx')
-rw-r--r--basic/source/sbx/sbxexec.cxx12
1 files changed, 6 insertions, 6 deletions
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 );