From 92b58a275341a1696257804cac85a2c33a71c1d5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 10 Jan 2017 08:10:31 +0100 Subject: New loplugin:conststringvar: sfx2 Change-Id: I287d338711a15fb53f4653b6475191099b8379e1 --- sfx2/source/appl/sfxhelp.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'sfx2/source/appl/sfxhelp.cxx') diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx index e992cc9a4d5a..6586e79a8f31 100644 --- a/sfx2/source/appl/sfxhelp.cxx +++ b/sfx2/source/appl/sfxhelp.cxx @@ -113,10 +113,9 @@ static OUString const & HelpLocaleString() { OUString aBaseInstallPath; utl::Bootstrap::locateBaseInstallation(aBaseInstallPath); - static const char *szHelpPath = "/help/"; + static const char szHelpPath[] = "/help/"; - OUString sHelpPath = aBaseInstallPath + - OUString::createFromAscii(szHelpPath) + aLocaleStr; + OUString sHelpPath = aBaseInstallPath + szHelpPath + aLocaleStr; osl::DirectoryItem aDirItem; if (osl::DirectoryItem::get(sHelpPath, aDirItem) != osl::FileBase::E_None) @@ -128,8 +127,7 @@ static OUString const & HelpLocaleString() { bOk = true; sLang = sLang.copy( 0, nSepPos ); - sHelpPath = aBaseInstallPath + - OUString::createFromAscii(szHelpPath) + sLang; + sHelpPath = aBaseInstallPath + szHelpPath + sLang; if (osl::DirectoryItem::get(sHelpPath, aDirItem) != osl::FileBase::E_None) bOk = false; } -- cgit