diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:10:16 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:16 +0100 |
commit | 4b0a3da4c5303fc97658050cf790f956f298599a (patch) | |
tree | 43764a1843059b3cdcf2e008c6c06d6a2d8cb87b /basctl/source/basicide/scriptdocument.cxx | |
parent | 8697284d248f47dd4798f7ef49791fc7686f646d (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I27f1d5ee55338372b1c24187b63d23ae39e0a8b3
Diffstat (limited to 'basctl/source/basicide/scriptdocument.cxx')
-rw-r--r-- | basctl/source/basicide/scriptdocument.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/basctl/source/basicide/scriptdocument.cxx b/basctl/source/basicide/scriptdocument.cxx index 4ce587241c0c..d239fd29fe3e 100644 --- a/basctl/source/basicide/scriptdocument.cxx +++ b/basctl/source/basicide/scriptdocument.cxx @@ -415,7 +415,7 @@ namespace basctl { OSL_ENSURE( isValid(), "ScriptDocument::Impl::getBasicManager: invalid state!" ); if ( !isValid() ) - return NULL; + return nullptr; if ( isApplication() ) return SfxApplication::GetBasicManager(); @@ -426,7 +426,7 @@ namespace basctl { SAL_WARN( "basctl.basicide", "ScriptDocument::getBasicManager: Caught exception: " << e.Message ); } - return NULL; + return nullptr; } Reference< XModel > ScriptDocument::Impl::getDocument() const @@ -434,7 +434,7 @@ namespace basctl OSL_ENSURE( isValid(), "ScriptDocument::Impl::getDocument: invalid state!" ); OSL_ENSURE( isDocument(), "ScriptDocument::Impl::getDocument: for documents only!" ); if ( !isValid() || !isDocument() ) - return NULL; + return nullptr; return m_xDocument; } @@ -1336,7 +1336,7 @@ namespace basctl { if ( isDocument() ) return m_pImpl->getDocument(); - return NULL; + return nullptr; } @@ -1364,7 +1364,7 @@ namespace basctl bool ScriptDocument::renameModule( const OUString& _rLibName, const OUString& _rOldName, const OUString& _rNewName ) const { - return m_pImpl->renameModuleOrDialog( E_SCRIPTS, _rLibName, _rOldName, _rNewName, NULL ); + return m_pImpl->renameModuleOrDialog( E_SCRIPTS, _rLibName, _rOldName, _rNewName, nullptr ); } |