diff options
author | Sven Gothel <[email protected]> | 2022-01-18 03:32:48 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-01-18 03:32:48 +0100 |
commit | c498580be4549adc8d092dd088220ad4484ae35a (patch) | |
tree | 6b4bfc32229e43611f3964808657f17c45bc8fbc /java/jni | |
parent | 705c08ff1d87135af532b96338f2ada6199ac5ed (diff) |
DBTDevice::getEIRImpl(): Just copy instance w/o clear and set
Diffstat (limited to 'java/jni')
-rw-r--r-- | java/jni/direct_bt/DBTDevice.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/java/jni/direct_bt/DBTDevice.cxx b/java/jni/direct_bt/DBTDevice.cxx index 141c151b..250ed33a 100644 --- a/java/jni/direct_bt/DBTDevice.cxx +++ b/java/jni/direct_bt/DBTDevice.cxx @@ -958,8 +958,7 @@ void Java_jau_direct_1bt_DBTDevice_getEIRImpl(JNIEnv *env, jobject obj, jobject try { BTDevice *device = getJavaUplinkObject<BTDevice>(env, obj); EInfoReport * eir_sink_ptr = jau::getInstance<EInfoReport>(env, jeir_sink); - eir_sink_ptr->clear(); - eir_sink_ptr->set( device->getEIR() ); + *eir_sink_ptr = device->getEIR(); } catch(...) { rethrow_and_raise_java_exception(env); } |