summaryrefslogtreecommitdiff
path: root/desktop/source/app/langselect.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-12-28 18:19:25 +0100
committerJulien Nabet <serval2412@yahoo.fr>2012-12-28 18:19:25 +0100
commit8394c5a19170af5e62ba1a5adc236465e5d65bde (patch)
tree7e0baad049d6a5fc23f18b3a92091232d4281a90 /desktop/source/app/langselect.cxx
parentf52e8908a6924ad7786874ca45deb46f0dfe4e30 (diff)
Some cppcheck cleaning + Related fdo#57950
Change-Id: I7ac04bf39004f8fd86404710ef2f15cf9678f63d
Diffstat (limited to 'desktop/source/app/langselect.cxx')
-rw-r--r--desktop/source/app/langselect.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/desktop/source/app/langselect.cxx b/desktop/source/app/langselect.cxx
index e25449390e0b..ab3043827c87 100644
--- a/desktop/source/app/langselect.cxx
+++ b/desktop/source/app/langselect.cxx
@@ -85,16 +85,10 @@ static OUString locateSofficeIniFile()
if ( utl::Bootstrap::locateUserData( aUserDataPath ) == utl::Bootstrap::PATH_EXISTS )
{
- const char CONFIG_DIR[] = "/config";
-
sal_Int32 nIndex = aSofficeIniFileURL.lastIndexOf( '/');
if ( nIndex > 0 )
{
- OUString aUserSofficeIniFileURL;
- OUStringBuffer aBuffer( aUserDataPath );
- aBuffer.appendAscii( CONFIG_DIR );
- aBuffer.append( aSofficeIniFileURL.copy( nIndex ));
- aUserSofficeIniFileURL = aBuffer.makeStringAndClear();
+ OUString aUserSofficeIniFileURL = aUserDataPath + "/config" + aSofficeIniFileURL.copy( nIndex );
if ( existsURL( aUserSofficeIniFileURL ))
return aUserSofficeIniFileURL;