diff options
author | Ricardo Montania <ricardo@linuxafundo.com.br> | 2013-05-20 07:30:19 -0300 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-05-22 21:03:56 +0000 |
commit | b7df3446c373a93dc5b77b495a54d873d83a91a7 (patch) | |
tree | 1de5e9567eaf1e7c5115e6b968ec4e49c45af3c1 /padmin | |
parent | 8eb1fb9eff4d4eea9c0c1c2e8d3b380e227b5d50 (diff) |
AppendAscii cleanup
Change-Id: I7398272de0bd340ebfb5f31b314d32fcff007eec
Reviewed-on: https://gerrit.libreoffice.org/3974
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'padmin')
-rw-r--r-- | padmin/source/helper.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/padmin/source/helper.cxx b/padmin/source/helper.cxx index 3b5e5f75cb47..a65915047f3b 100644 --- a/padmin/source/helper.cxx +++ b/padmin/source/helper.cxx @@ -250,8 +250,12 @@ Config& padmin::getPadminRC() if( ! pRC ) { static const char* pEnv = getenv( "HOME" ); - String aFileName( pEnv ? pEnv : "", osl_getThreadTextEncoding() ); - aFileName.AppendAscii( "/.padminrc" ); + OUString aFileName; + if( pEnv ) + aFileName = OUString::createFromAscii( pEnv ) + "/.padminrc"; + else + aFileName += OStringToOUString( "", osl_getThreadTextEncoding() ) + "/.padminrc"; + pRC = new Config( aFileName ); } return *pRC; |