diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:24:34 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:43 +0100 |
commit | da95f17cb69fe9eb18be44aaac9f71a68445e91c (patch) | |
tree | 6e46ab7b819efc6107b8acaf33e86f881992c2c9 /stoc/source/javaloader | |
parent | loplugin:nullptr (automatic rewrite) (diff) | |
download | core-da95f17cb69fe9eb18be44aaac9f71a68445e91c.tar.gz core-da95f17cb69fe9eb18be44aaac9f71a68445e91c.zip |
loplugin:nullptr (automatic rewrite)
Change-Id: I162b47199e959f97c3bed1f307225db944017e4f
Diffstat (limited to 'stoc/source/javaloader')
-rw-r--r-- | stoc/source/javaloader/javaloader.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/stoc/source/javaloader/javaloader.cxx b/stoc/source/javaloader/javaloader.cxx index a602619607fa..7017956520c4 100644 --- a/stoc/source/javaloader/javaloader.cxx +++ b/stoc/source/javaloader/javaloader.cxx @@ -130,9 +130,9 @@ const css::uno::Reference<XImplementationLoader> & JavaComponentLoader::getJavaL if (m_javaLoader.is()) return m_javaLoader; - uno_Environment * pJava_environment = NULL; - uno_Environment * pUno_environment = NULL; - typelib_InterfaceTypeDescription * pType_XImplementationLoader = 0; + uno_Environment * pJava_environment = nullptr; + uno_Environment * pUno_environment = nullptr; + typelib_InterfaceTypeDescription * pType_XImplementationLoader = nullptr; try { // get a java vm, where we can create a loader @@ -158,7 +158,7 @@ const css::uno::Reference<XImplementationLoader> & JavaComponentLoader::getJavaL static_assert(sizeof (sal_Int64) >= sizeof (jvmaccess::UnoVirtualMachine *), "must be at least the same size"); sal_Int64 nPointer = reinterpret_cast< sal_Int64 >( - static_cast< jvmaccess::UnoVirtualMachine * >(0)); + static_cast< jvmaccess::UnoVirtualMachine * >(nullptr)); javaVM_xJavaVM->getJavaVM(processID) >>= nPointer; rtl::Reference< jvmaccess::UnoVirtualMachine > xVirtualMachine( reinterpret_cast< jvmaccess::UnoVirtualMachine * >(nPointer)); @@ -223,7 +223,7 @@ const css::uno::Reference<XImplementationLoader> & JavaComponentLoader::getJavaL // why is there no convenient constructor? OUString sCppu_current_lb_name(CPPU_CURRENT_LANGUAGE_BINDING_NAME); - uno_getEnvironment(&pUno_environment, sCppu_current_lb_name.pData, NULL); + uno_getEnvironment(&pUno_environment, sCppu_current_lb_name.pData, nullptr); if(!pUno_environment) throw RuntimeException( "javaloader error - no C++ environment available"); @@ -235,11 +235,11 @@ const css::uno::Reference<XImplementationLoader> & JavaComponentLoader::getJavaL // release java environment pJava_environment->release(pJava_environment); - pJava_environment = NULL; + pJava_environment = nullptr; // release uno environment pUno_environment->release(pUno_environment); - pUno_environment = NULL; + pUno_environment = nullptr; cppu::UnoType<XImplementationLoader>::get(). getDescription(reinterpret_cast<typelib_TypeDescription **>(&pType_XImplementationLoader)); @@ -254,7 +254,7 @@ const css::uno::Reference<XImplementationLoader> & JavaComponentLoader::getJavaL "javaloader error - mapping of java XImplementationLoader to c++ failed"); typelib_typedescription_release(reinterpret_cast<typelib_TypeDescription *>(pType_XImplementationLoader)); - pType_XImplementationLoader = NULL; + pType_XImplementationLoader = nullptr; } catch (jvmaccess::VirtualMachine::AttachGuard::CreationException &) { @@ -349,7 +349,7 @@ css::uno::Reference<XInterface> SAL_CALL JavaComponentLoader::activate( static Mutex & getInitMutex() { - static Mutex * pMutex = 0; + static Mutex * pMutex = nullptr; if( ! pMutex ) { MutexGuard guard( Mutex::getGlobalMutex() ); @@ -401,9 +401,9 @@ static const struct ImplementationEntry g_entries[] = { JavaComponentLoader_CreateInstance, loader_getImplementationName, loader_getSupportedServiceNames, createSingleComponentFactory, - 0 , 0 + nullptr , 0 }, - { 0, 0, 0, 0, 0, 0 } + { nullptr, nullptr, nullptr, nullptr, nullptr, 0 } }; extern "C" |