summaryrefslogtreecommitdiff
path: root/bridges/source/jni_uno/jni_bridge.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bridges/source/jni_uno/jni_bridge.cxx')
-rw-r--r--bridges/source/jni_uno/jni_bridge.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/bridges/source/jni_uno/jni_bridge.cxx b/bridges/source/jni_uno/jni_bridge.cxx
index a4548e17361b..87d210d300c7 100644
--- a/bridges/source/jni_uno/jni_bridge.cxx
+++ b/bridges/source/jni_uno/jni_bridge.cxx
@@ -512,10 +512,7 @@ void SAL_CALL uno_ext_getMapping(
try
{
- if (from_env_typename.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM(UNO_LB_JAVA) ) &&
- to_env_typename.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM(UNO_LB_UNO) ))
+ if ( from_env_typename == UNO_LB_JAVA && to_env_typename == UNO_LB_UNO )
{
Bridge * bridge =
new Bridge( pFrom, pTo->pExtEnv, true ); // ref count = 1
@@ -524,10 +521,7 @@ void SAL_CALL uno_ext_getMapping(
&mapping, Bridge_free,
pFrom, (uno_Environment *)pTo->pExtEnv, 0 );
}
- else if (from_env_typename.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM(UNO_LB_UNO) ) &&
- to_env_typename.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM(UNO_LB_JAVA) ))
+ else if ( from_env_typename == UNO_LB_UNO && to_env_typename == UNO_LB_JAVA )
{
Bridge * bridge =
new Bridge( pTo, pFrom->pExtEnv, false ); // ref count = 1