uui/source/iahndl-ssl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit fc7f8714956cb37f9243df21e57a079d057e46c6
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Wed May 1 20:40:08 2024 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu May 2 09:46:56 2024 +0200

    elide temporary OString in uui
    
    Change-Id: I6510d930b13ee019d1a67810b02a5157834c7c24
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166978
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/uui/source/iahndl-ssl.cxx b/uui/source/iahndl-ssl.cxx
index 3e2525093935..5f5f84e21faa 100644
--- a/uui/source/iahndl-ssl.cxx
+++ b/uui/source/iahndl-ssl.cxx
@@ -259,7 +259,7 @@ handleCertificateValidationRequest_(
     uno::Reference< security::XSanExtension > sanExtension;
     auto pExtension = std::find_if(extensions.begin(), extensions.end(),
         [](const uno::Reference< security::XCertificateExtension >& element) {
-            OString aId ( reinterpret_cast<const char 
*>(element->getExtensionId().getConstArray()), 
element->getExtensionId().getLength());
+            std::string_view aId ( reinterpret_cast<const char 
*>(element->getExtensionId().getConstArray()), 
element->getExtensionId().getLength());
             return aId == OID_SUBJECT_ALTERNATIVE_NAME;
         });
     if (pExtension != extensions.end())

Reply via email to