diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-21 15:30:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-22 13:29:02 +0200 |
commit | fa856bdd2757745f71d2ae1e31e90006a9cdaa4e (patch) | |
tree | ac58ba99a69f47dcb8a84ab44745e3517dea6f70 /bridges | |
parent | 25ada1e520b50247aa27fdbb6f1ab35e678c7ef9 (diff) |
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.grandin@collabora.co.uk>
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/source/jni_uno/jni_info.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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, |