From 3fff050a343e7fb45c3c562772b22fb5e824352f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 12 Jan 2021 15:25:26 +0100 Subject: loplugin:stringliteralvar (clang-cl) Change-Id: I79949789634242eb95cc722bab83e0348775f274 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109174 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- .../source/config/WinUserInfo/WinUserInfoBe.cxx | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'extensions/source/config') diff --git a/extensions/source/config/WinUserInfo/WinUserInfoBe.cxx b/extensions/source/config/WinUserInfo/WinUserInfoBe.cxx index 7dd5c5463e46..f9f5f9545439 100644 --- a/extensions/source/config/WinUserInfo/WinUserInfoBe.cxx +++ b/extensions/source/config/WinUserInfo/WinUserInfoBe.cxx @@ -60,23 +60,23 @@ public: namespace { -constexpr char givenname[]("givenname"); -constexpr char sn[]("sn"); +constexpr OUStringLiteral givenname(u"givenname"); +constexpr OUStringLiteral sn(u"sn"); constexpr char fathersname[]("fathersname"); -constexpr char initials[]("initials"); -constexpr char street[]("street"); -constexpr char l[]("l"); -constexpr char st[]("st"); +constexpr OUStringLiteral initials(u"initials"); +constexpr OUStringLiteral street(u"street"); +constexpr OUStringLiteral l(u"l"); +constexpr OUStringLiteral st(u"st"); constexpr char apartment[]("apartment"); -constexpr char postalcode[]("postalcode"); -constexpr char c[]("c"); -constexpr char o[]("o"); +constexpr OUStringLiteral postalcode(u"postalcode"); +constexpr OUStringLiteral c(u"c"); +constexpr OUStringLiteral o(u"o"); constexpr char position[]("position"); -constexpr char title[]("title"); -constexpr char homephone[]("homephone"); -constexpr char telephonenumber[]("telephonenumber"); -constexpr char facsimiletelephonenumber[]("facsimiletelephonenumber"); -constexpr char mail[]("mail"); +constexpr OUStringLiteral title(u"title"); +constexpr OUStringLiteral homephone(u"homephone"); +constexpr OUStringLiteral telephonenumber(u"telephonenumber"); +constexpr OUStringLiteral facsimiletelephonenumber(u"facsimiletelephonenumber"); +constexpr OUStringLiteral mail(u"mail"); // Backend class implementing access to Active Directory user data. It caches its encoded data // in a configuration entry, to allow reusing it when user later doesn't have access to AD DC -- cgit