From fa856bdd2757745f71d2ae1e31e90006a9cdaa4e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 21 Apr 2022 15:30:51 +0200 Subject: 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 --- bridges/source/jni_uno/jni_info.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bridges') 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, -- cgit