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
This commit is contained in:
Noel Grandin 2024-05-02 15:54:32 +02:00
parent defc7a9206
commit 9b50d8183c

View file

@ -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 )
{