bridges/source/jni_uno/jni_info.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit fa856bdd2757745f71d2ae1e31e90006a9cdaa4e Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Thu Apr 21 15:30:51 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Apr 22 13:29:02 2022 +0200 use more string_view in bridges Change-Id: I842668655dec102e1595dcbac6413fe2b49d8515 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133268 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/bridges/source/jni_uno/jni_info.cxx b/bridges/source/jni_uno/jni_info.cxx index 16a5a1ac4d5c..81ad9323de48 100644 --- a/bridges/source/jni_uno/jni_info.cxx +++ b/bridges/source/jni_uno/jni_info.cxx @@ -243,12 +243,12 @@ JNI_compound_type_info::JNI_compound_type_info( OUString::unacquired( &td->aBase.pTypeName ); // Erase type arguments of instantiated polymorphic struct types: - OUString nucleus; + std::u16string_view nucleus; sal_Int32 i = uno_name.indexOf( '<' ); if ( i < 0 ) { nucleus = uno_name; } else { - nucleus = uno_name.copy( 0, i ); + nucleus = uno_name.subView( 0, i ); } JLocalAutoRef jo_class( jni,