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:
parent
defc7a9206
commit
9b50d8183c
1 changed files with 2 additions and 4 deletions
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue