diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-06 09:19:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-06 09:19:11 +0100 |
commit | b9b22fa7f81bb2c0e2aa3f56e76785210ed1f1a0 (patch) | |
tree | 0f2e176f7c9df842fb7bb04f6504141cabd9e3f5 /connectivity/source/drivers/hsqldb | |
parent | a1ce4fb4f0dbc3c4141f510e5b2b732a24d862c8 (diff) |
IBM jni.h has non-const SetByteArrayRegion final arg
Diffstat (limited to 'connectivity/source/drivers/hsqldb')
-rw-r--r-- | connectivity/source/drivers/hsqldb/HStorageAccess.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/hsqldb/StorageNativeInputStream.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/hsqldb/HStorageAccess.cxx b/connectivity/source/drivers/hsqldb/HStorageAccess.cxx index 0e2856a72e7a..e692e7534b69 100644 --- a/connectivity/source/drivers/hsqldb/HStorageAccess.cxx +++ b/connectivity/source/drivers/hsqldb/HStorageAccess.cxx @@ -257,7 +257,7 @@ jint read_from_storage_stream_into_buffer( JNIEnv * env, jobject /*obj_this*/,js if (nBytesRead <= 0) return -1; - env->SetByteArrayRegion(buffer,off,nBytesRead,(const jbyte*) &aData[0]); + env->SetByteArrayRegion(buffer,off,nBytesRead,(jbyte*) &aData[0]); #ifdef HSQLDB_DBG if ( logger ) diff --git a/connectivity/source/drivers/hsqldb/StorageNativeInputStream.cxx b/connectivity/source/drivers/hsqldb/StorageNativeInputStream.cxx index 1b13ed62c322..f96eae2da09e 100644 --- a/connectivity/source/drivers/hsqldb/StorageNativeInputStream.cxx +++ b/connectivity/source/drivers/hsqldb/StorageNativeInputStream.cxx @@ -294,7 +294,7 @@ SAL_DLLPUBLIC_EXPORT jint JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_StorageNat } OSL_ENSURE(nLen >= nBytesRead,"Buffer is too small!"); OSL_ENSURE(aData.getLength() >= nBytesRead,"Buffer is too small!"); - env->SetByteArrayRegion(buffer,0,nBytesRead,(const jbyte*) &aData[0]); + env->SetByteArrayRegion(buffer, 0, nBytesRead, (jbyte*) &aData[0]); #ifdef HSQLDB_DBG aDataLog.write( &aData[0], nBytesRead ); #endif |