From 16506994ecef4bd800575beb9f2b66eb16d902fa Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 25 Dec 2021 08:52:18 +0200 Subject: can use OUStringLiteral here Change-Id: I1e71a35c2ce6bc7ef3081054e51494411d9a29ae Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127491 Tested-by: Jenkins Reviewed-by: Noel Grandin --- stoc/source/security/permissions.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stoc') diff --git a/stoc/source/security/permissions.cxx b/stoc/source/security/permissions.cxx index 987b07ed8997..1d7aca177344 100644 --- a/stoc/source/security/permissions.cxx +++ b/stoc/source/security/permissions.cxx @@ -329,7 +329,7 @@ FilePermission::FilePermission( // correct win drive letters if (9 < m_url.getLength() && '|' == m_url[ 9 ]) // file:///X| { - static OUString s_colon = ":"; + constexpr OUStringLiteral s_colon = u":"; // common case in API is a ':' (sal), so convert '|' to ':' m_url = m_url.replaceAt( 9, 1, s_colon ); } -- cgit