diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:10:36 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:17 +0100 |
commit | 08e49fa3377d8c4e7e5df7a32233fcd9763ee936 (patch) | |
tree | f06399e5a005a70612093f415bd02ea2d1ba719f /basic/source/sbx/sbxbase.cxx | |
parent | a17cde058213f962b8de880de6f5b1e4f2061b37 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I1ec9a671fe3ac838feb36297915e3cdf8749d944
Diffstat (limited to 'basic/source/sbx/sbxbase.cxx')
-rw-r--r-- | basic/source/sbx/sbxbase.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/basic/source/sbx/sbxbase.cxx b/basic/source/sbx/sbxbase.cxx index 80b56c3eebf3..8689b5b379ff 100644 --- a/basic/source/sbx/sbxbase.cxx +++ b/basic/source/sbx/sbxbase.cxx @@ -34,7 +34,7 @@ TYPEINIT0(SbxBase) SbxAppData::SbxAppData() : eSbxError(ERRCODE_SBX_OK) - , pBasicFormater(0) + , pBasicFormater(nullptr) , eBasicFormaterLangType(LANGUAGE_DONTKNOW) { } @@ -174,7 +174,7 @@ SbxBase* SbxBase::Create( sal_uInt16 nSbxId, sal_uInt32 nCreator ) } // Unknown type: go over the factories! SbxAppData& r = GetSbxData_Impl(); - SbxBase* pNew = NULL; + SbxBase* pNew = nullptr; for (auto const& rpFac : r.m_Factories) { pNew = rpFac->Create( nSbxId, nCreator ); @@ -188,7 +188,7 @@ SbxBase* SbxBase::Create( sal_uInt16 nSbxId, sal_uInt32 nCreator ) SbxObject* SbxBase::CreateObject( const OUString& rClass ) { SbxAppData& r = GetSbxData_Impl(); - SbxObject* pNew = NULL; + SbxObject* pNew = nullptr; for (auto const& rpFac : r.m_Factories) { pNew = rpFac->CreateObject( rClass ); @@ -227,7 +227,7 @@ SbxBase* SbxBase::Load( SvStream& rStrm ) { // Deleting of the object SbxBaseRef aRef( p ); - p = NULL; + p = nullptr; } } else @@ -235,7 +235,7 @@ SbxBase* SbxBase::Load( SvStream& rStrm ) rStrm.SetError( SVSTREAM_FILEFORMAT_ERROR ); // Deleting of the object SbxBaseRef aRef( p ); - p = NULL; + p = nullptr; } } else @@ -314,12 +314,12 @@ SbxFactory::~SbxFactory() SbxBase* SbxFactory::Create( sal_uInt16, sal_uInt32 ) { - return NULL; + return nullptr; } SbxObject* SbxFactory::CreateObject( const OUString& ) { - return NULL; + return nullptr; } ///////////////////////////////// SbxInfo @@ -335,7 +335,7 @@ void SbxInfo::AddParam(const OUString& rName, SbxDataType eType, SbxFlagBits nFl const SbxParamInfo* SbxInfo::GetParam( sal_uInt16 n ) const { if (n < 1 || n > m_Params.size()) - return NULL; + return nullptr; else return m_Params[n - 1].get(); } |