diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-05-23 22:11:27 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-05-23 22:11:52 +0200 |
commit | ac76cc7e605b1bc9c0ff8e24d0b9995a8247074e (patch) | |
tree | 797df8cc9387fa70a0c09e574f49714ce4dc6710 /javaunohelper | |
parent | 3191d7d1302dbde2445b9f300b3eb853120ede65 (diff) |
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
Diffstat (limited to 'javaunohelper')
-rw-r--r-- | javaunohelper/source/javaunohelper.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/javaunohelper/source/javaunohelper.cxx b/javaunohelper/source/javaunohelper.cxx index d779380e59a7..54d286451379 100644 --- a/javaunohelper/source/javaunohelper.cxx +++ b/javaunohelper/source/javaunohelper.cxx @@ -104,10 +104,10 @@ jboolean Java_com_sun_star_comp_helper_SharedLibraryLoader_component_1writeInfo( { void * pSMgr = java2dest.mapInterface( - jSMgr, getCppuType((Reference< lang::XMultiServiceFactory > *) 0) ); + jSMgr, cppu::UnoType<lang::XMultiServiceFactory>::get()); void * pKey = java2dest.mapInterface( - jRegKey, getCppuType((Reference< registry::XRegistryKey > *) 0) ); + jRegKey, cppu::UnoType<registry::XRegistryKey>::get()); uno_ExtEnvironment * env = loader_env.get()->pExtEnv; if (pKey) @@ -198,10 +198,10 @@ jobject Java_com_sun_star_comp_helper_SharedLibraryLoader_component_1getFactory( { void * pSMgr = java2dest.mapInterface( - jSMgr, ::getCppuType((Reference< lang::XMultiServiceFactory > *) 0) ); + jSMgr, cppu::UnoType<lang::XMultiServiceFactory>::get()); void * pKey = java2dest.mapInterface( - jRegKey, ::getCppuType((Reference< registry::XRegistryKey > *) 0) ); + jRegKey, cppu::UnoType<registry::XRegistryKey>::get()); const char* pImplName = pJEnv->GetStringUTFChars( jImplName, NULL ); @@ -220,7 +220,7 @@ jobject Java_com_sun_star_comp_helper_SharedLibraryLoader_component_1getFactory( if (pSSF) { jobject jglobal = (jobject) dest2java.mapInterface( - pSSF, getCppuType((Reference< XInterface > *) 0) ); + pSSF, cppu::UnoType<XInterface>::get()); joSLL_cpp = pJEnv->NewLocalRef( jglobal ); pJEnv->DeleteGlobalRef( jglobal ); if (env) |