diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-02 15:54:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-05 11:39:40 +0200 |
commit | 9b50d8183c63b61dc0c5ba4b202171ff2139a57a (patch) | |
tree | 5bd706578b1ac1af5c52b990029db6be350dd833 | |
parent | defc7a92064832423242635d48a7db4440a0b347 (diff) |
replace createFromAscii with OUString literals in uui
Change-Id: I5a1694015603a7ef8a421c0349cfe4319cc4e9fa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167150
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
-rw-r--r-- | uui/source/iahndl-ssl.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/uui/source/iahndl-ssl.cxx b/uui/source/iahndl-ssl.cxx index 5f5f84e21faa..beb05743fceb 100644 --- a/uui/source/iahndl-ssl.cxx +++ b/uui/source/iahndl-ssl.cxx @@ -58,12 +58,10 @@ OUString getContentPart( std::u16string_view _rRawString ) { // search over some parts to find a string - static char const * aIDs[] = { "CN=", "OU=", "O=", "E=", nullptr }; + static constexpr OUString aIDs[] = { u"CN="_ustr, u"OU="_ustr, u"O="_ustr, u"E="_ustr }; OUString sPart; - int i = 0; - while ( aIDs[i] ) + for (const OUString & sPartId : aIDs ) { - OUString sPartId = OUString::createFromAscii( aIDs[i++] ); size_t nContStart = _rRawString.find( sPartId ); if ( nContStart != std::u16string_view::npos ) { |