summaryrefslogtreecommitdiff
path: root/javaunohelper
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2017-05-07 17:03:35 +1000
committerChris Sherlock <chris.sherlock79@gmail.com>2017-05-07 17:03:35 +1000
commit97eb00c75e173d4c8d0b483a7941ad3d2f23783e (patch)
tree7974a8b9423c56982646366b0859dfb2a1a88d50 /javaunohelper
parentd0a99cc2ed76be220f7e868e332ba19f6e48a440 (diff)
revert OSL_ASSERT changes
Change-Id: I365d140446bd2a62cf8256acbfdd53fe72987380
Diffstat (limited to 'javaunohelper')
-rw-r--r--javaunohelper/source/bootstrap.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/javaunohelper/source/bootstrap.cxx b/javaunohelper/source/bootstrap.cxx
index d75bf132ce0b..6ec95eaa4484 100644
--- a/javaunohelper/source/bootstrap.cxx
+++ b/javaunohelper/source/bootstrap.cxx
@@ -49,12 +49,12 @@ namespace javaunohelper
inline OUString jstring_to_oustring( jstring jstr, JNIEnv * jni_env )
{
- assert( sizeof (sal_Unicode) == sizeof (jchar) );
+ OSL_ASSERT( sizeof (sal_Unicode) == sizeof (jchar) );
jsize len = jni_env->GetStringLength( jstr );
rtl_uString * ustr =
static_cast<rtl_uString *>(rtl_allocateMemory( sizeof (rtl_uString) + (len * sizeof (sal_Unicode)) ));
jni_env->GetStringRegion( jstr, 0, len, reinterpret_cast<jchar *>(ustr->buffer) );
- assert( !jni_env->ExceptionCheck() );
+ OSL_ASSERT( !jni_env->ExceptionCheck() );
ustr->refCount = 1;
ustr->length = len;
ustr->buffer[ len ] = '\0';