diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:22:15 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:35 +0100 |
commit | de63cac20fba1e7661687a4f1c1ce91182f4dfa0 (patch) | |
tree | 5350f357dbf174ccd167e2af3ae58a18698306d7 /salhelper/source/dynload.cxx | |
parent | 26f05d59bc1c25b8a0d19be7f4738fd12e557001 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: If341fc7d18bb6f07d76dd259f5dd77b447c93566
Diffstat (limited to 'salhelper/source/dynload.cxx')
-rw-r--r-- | salhelper/source/dynload.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/salhelper/source/dynload.cxx b/salhelper/source/dynload.cxx index f881b52937e7..7c9c9ce55612 100644 --- a/salhelper/source/dynload.cxx +++ b/salhelper/source/dynload.cxx @@ -55,7 +55,7 @@ ORealDynamicLoader* ORealDynamicLoader::newInstance(ORealDynamicLoader ** ppSetT if ( !pModule ) { - return NULL; + return nullptr; } initFunc = reinterpret_cast<ApiInitFunction>(osl_getFunctionSymbol( @@ -64,7 +64,7 @@ ORealDynamicLoader* ORealDynamicLoader::newInstance(ORealDynamicLoader ** ppSetT if ( !initFunc ) { osl_unloadModule(pModule); - return NULL; + return nullptr; } return(new ORealDynamicLoader(ppSetToZeroInDestructor, moduleName, @@ -78,14 +78,14 @@ ORealDynamicLoader::~ORealDynamicLoader() { // set the address to zero if( ppSetToZeroInDestructor ) - *ppSetToZeroInDestructor = 0; + *ppSetToZeroInDestructor = nullptr; if (m_pModule) { #ifndef DISABLE_DYNLOADING osl_unloadModule(m_pModule); #endif - m_pModule = NULL; + m_pModule = nullptr; } } |