summaryrefslogtreecommitdiff
path: root/javaunohelper/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-08 09:22:10 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-08 09:49:01 +0200
commit79a359fea1885151a77f83e05eee8d2aa97895ab (patch)
tree0f17ddb1a91c5ffd68c9dfb036b37e3993e5ecc6 /javaunohelper/source
parent1cb0b37ad09400138d7c4a5874c02f921e742d37 (diff)
jboolean-related clean-up
Change-Id: Iecd03d0343b9b7c3a8b23b5a1e9654148b94d44c
Diffstat (limited to 'javaunohelper/source')
-rw-r--r--javaunohelper/source/bootstrap.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/javaunohelper/source/bootstrap.cxx b/javaunohelper/source/bootstrap.cxx
index 7a4e2833d33b..81d6a35909b3 100644
--- a/javaunohelper/source/bootstrap.cxx
+++ b/javaunohelper/source/bootstrap.cxx
@@ -54,7 +54,7 @@ inline OUString jstring_to_oustring( jstring jstr, JNIEnv * jni_env )
rtl_uString * ustr =
static_cast<rtl_uString *>(rtl_allocateMemory( sizeof (rtl_uString) + (len * sizeof (sal_Unicode)) ));
jni_env->GetStringRegion( jstr, 0, len, ustr->buffer );
- OSL_ASSERT( JNI_FALSE == jni_env->ExceptionCheck() );
+ OSL_ASSERT( !jni_env->ExceptionCheck() );
ustr->refCount = 1;
ustr->length = len;
ustr->buffer[ len ] = '\0';
@@ -77,7 +77,7 @@ jobject Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap(
{
// name
jstring jstr = static_cast<jstring>(jni_env->GetObjectArrayElement( jpairs, nPos ));
- if (JNI_FALSE != jni_env->ExceptionCheck())
+ if (jni_env->ExceptionCheck())
{
jni_env->ExceptionClear();
throw RuntimeException( "index out of bounds?!" );
@@ -87,7 +87,7 @@ jobject Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap(
OUString name( ::javaunohelper::jstring_to_oustring( jstr, jni_env ) );
// value
jstr = static_cast<jstring>(jni_env->GetObjectArrayElement( jpairs, nPos +1 ));
- if (JNI_FALSE != jni_env->ExceptionCheck())
+ if (jni_env->ExceptionCheck())
{
jni_env->ExceptionClear();
throw RuntimeException( "index out of bounds?!" );