diff options
Diffstat (limited to 'bridges/source/jni_uno/jni_helper.h')
-rw-r--r-- | bridges/source/jni_uno/jni_helper.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bridges/source/jni_uno/jni_helper.h b/bridges/source/jni_uno/jni_helper.h index ce16b6c587f2..1c67992e23f1 100644 --- a/bridges/source/jni_uno/jni_helper.h +++ b/bridges/source/jni_uno/jni_helper.h @@ -20,7 +20,9 @@ #ifndef INCLUDED_BRIDGES_SOURCE_JNI_UNO_JNI_HELPER_H #define INCLUDED_BRIDGES_SOURCE_JNI_UNO_JNI_HELPER_H -#include <o3tl/heap_ptr.hxx> +#include <sal/config.h> + +#include <memory> #include "jni_base.h" #include "jni_info.h" @@ -39,7 +41,7 @@ inline void jstring_to_ustring( else { jsize len = jni->GetStringLength( jstr ); - o3tl::heap_ptr< rtl_mem > mem( + std::unique_ptr< rtl_mem > mem( rtl_mem::allocate( sizeof (rtl_uString) + (len * sizeof (sal_Unicode)) ) ); rtl_uString * ustr = (rtl_uString *)mem.get(); |