summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/sfxhelp.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-10 08:10:31 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-10 08:10:31 +0100
commit92b58a275341a1696257804cac85a2c33a71c1d5 (patch)
tree9a02489a28c76e5c57daffef3d673bdca0e38d6a /sfx2/source/appl/sfxhelp.cxx
parent172257062881dab61b71367c8be31460e9b26cc9 (diff)
New loplugin:conststringvar: sfx2
Change-Id: I287d338711a15fb53f4653b6475191099b8379e1
Diffstat (limited to 'sfx2/source/appl/sfxhelp.cxx')
-rw-r--r--sfx2/source/appl/sfxhelp.cxx8
1 files changed, 3 insertions, 5 deletions
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;
}