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/basmgr/basicmanagerrepository.cxx | |
parent | a17cde058213f962b8de880de6f5b1e4f2061b37 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I1ec9a671fe3ac838feb36297915e3cdf8749d944
Diffstat (limited to 'basic/source/basmgr/basicmanagerrepository.cxx')
-rw-r--r-- | basic/source/basmgr/basicmanagerrepository.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/basic/source/basmgr/basicmanagerrepository.cxx b/basic/source/basmgr/basicmanagerrepository.cxx index 3ec9ed4f8bf0..1b3ca26af456 100644 --- a/basic/source/basmgr/basicmanagerrepository.cxx +++ b/basic/source/basmgr/basicmanagerrepository.cxx @@ -225,7 +225,7 @@ namespace basic without creating another instance. */ BasicManager*& pBasicManager = impl_getLocationForModel( _rxDocumentModel ); - if ( pBasicManager == NULL ) + if ( pBasicManager == nullptr ) impl_createManagerForModel( pBasicManager, _rxDocumentModel ); return pBasicManager; @@ -237,7 +237,7 @@ namespace basic SolarMutexGuard g; BasicManager* pAppManager = GetSbData()->pAppBasMgr; - if ( ( pAppManager == NULL ) && _bCreate ) + if ( ( pAppManager == nullptr ) && _bCreate ) pAppManager = impl_createApplicationBasicManager(); return pAppManager; @@ -259,7 +259,7 @@ namespace basic { SolarMutexGuard g; - OSL_PRECOND( getApplicationBasicManager( false ) == NULL, "ImplRepository::impl_createApplicationBasicManager: there already is one!" ); + OSL_PRECOND( getApplicationBasicManager( false ) == nullptr, "ImplRepository::impl_createApplicationBasicManager: there already is one!" ); // Determine Directory SvtPathOptions aPathCFG; @@ -308,7 +308,7 @@ namespace basic // (BasicLibraries and DialogLibraries have automatically been added in SetLibraryContainerInfo) // notify - impl_notifyCreationListeners( NULL, *pBasicManager ); + impl_notifyCreationListeners( nullptr, *pBasicManager ); // outta here return pBasicManager; @@ -352,8 +352,8 @@ namespace basic { BasicManager* pAppManager = getApplicationBasicManager( true ); - StarBASIC* pAppBasic = pAppManager ? pAppManager->GetLib(0) : NULL; - DBG_ASSERT( pAppBasic != NULL, "impl_getApplicationBasic: unable to determine the default application's Basic library!" ); + StarBASIC* pAppBasic = pAppManager ? pAppManager->GetLib(0) : nullptr; + DBG_ASSERT( pAppBasic != nullptr, "impl_getApplicationBasic: unable to determine the default application's Basic library!" ); return pAppBasic; } @@ -398,7 +398,7 @@ namespace basic { StarBASIC* pAppBasic = impl_getDefaultAppBasicLibrary(); - _out_rpBasicManager = 0; + _out_rpBasicManager = nullptr; Reference< XStorage > xStorage; if ( !impl_getDocumentStorage_nothrow( _rxDocumentModel, xStorage ) ) { @@ -434,7 +434,7 @@ namespace basic { // user wants to break loading of BASIC-manager delete _out_rpBasicManager; - _out_rpBasicManager = NULL; + _out_rpBasicManager = nullptr; xStorage.clear(); break; } @@ -448,7 +448,7 @@ namespace basic // create new BASIC-manager StarBASIC* pBasic = new StarBASIC( pAppBasic ); pBasic->SetFlag( SbxFlagBits::ExtSearch ); - _out_rpBasicManager = new BasicManager( pBasic, NULL, true ); + _out_rpBasicManager = new BasicManager( pBasic, nullptr, true ); } // knit the containers with the BasicManager @@ -599,7 +599,7 @@ namespace basic void BasicManagerRepository::resetApplicationBasicManager() { - return ImplRepository::Instance().setApplicationBasicManager( NULL ); + return ImplRepository::Instance().setApplicationBasicManager( nullptr ); } |