summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/appcfg.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-01-09 21:05:46 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-01-10 10:09:28 +0000
commit3c62fbcdd78e472d3dde604eff33be54cb3e21be (patch)
tree12a45fa393c2ce35a1fdff7efc0a63ef7600b7cd /sfx2/source/appl/appcfg.cxx
parentffbd3846d40eaf3dc8e8fa37e57d48ff7da88a5b (diff)
simplify LocalFileHelper::ConvertURLToPhysicalName
Diffstat (limited to 'sfx2/source/appl/appcfg.cxx')
-rw-r--r--sfx2/source/appl/appcfg.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sfx2/source/appl/appcfg.cxx b/sfx2/source/appl/appcfg.cxx
index ca9060a89573..2a17778d7039 100644
--- a/sfx2/source/appl/appcfg.cxx
+++ b/sfx2/source/appl/appcfg.cxx
@@ -445,7 +445,7 @@ sal_Bool SfxApplication::GetOptions( SfxItemSet& rSet )
{
const String aName( SfxResId( CONFIG_PATH_START + nProp ) );
aNames.InsertValue( nProp, aName );
- String aValue;
+ rtl::OUString aValue;
switch ( nProp )
{
case SvtPathOptions::PATH_ADDIN: ::utl::LocalFileHelper::ConvertPhysicalNameToURL( aPathCfg.GetAddinPath(), aValue ); break;
@@ -816,7 +816,7 @@ void SfxApplication::SetOptions(const SfxItemSet &rSet)
{
case SvtPathOptions::PATH_ADDIN:
{
- String aTmp;
+ rtl::OUString aTmp;
if( ::utl::LocalFileHelper::ConvertURLToPhysicalName( sValue, aTmp ) )
aPathOptions.SetAddinPath( aTmp );
break;
@@ -832,7 +832,7 @@ void SfxApplication::SetOptions(const SfxItemSet &rSet)
case SvtPathOptions::PATH_FAVORITES: aPathOptions.SetFavoritesPath( sValue );break;
case SvtPathOptions::PATH_FILTER:
{
- String aTmp;
+ rtl::OUString aTmp;
if( ::utl::LocalFileHelper::ConvertURLToPhysicalName( sValue, aTmp ) )
aPathOptions.SetFilterPath( aTmp );
break;
@@ -841,7 +841,7 @@ void SfxApplication::SetOptions(const SfxItemSet &rSet)
case SvtPathOptions::PATH_GRAPHIC: aPathOptions.SetGraphicPath( sValue );break;
case SvtPathOptions::PATH_HELP:
{
- String aTmp;
+ rtl::OUString aTmp;
if( ::utl::LocalFileHelper::ConvertURLToPhysicalName( sValue, aTmp ) )
aPathOptions.SetHelpPath( aTmp );
break;
@@ -850,7 +850,7 @@ void SfxApplication::SetOptions(const SfxItemSet &rSet)
case SvtPathOptions::PATH_LINGUISTIC: aPathOptions.SetLinguisticPath( sValue );break;
case SvtPathOptions::PATH_MODULE:
{
- String aTmp;
+ rtl::OUString aTmp;
if( ::utl::LocalFileHelper::ConvertURLToPhysicalName( sValue, aTmp ) )
aPathOptions.SetModulePath( aTmp );
break;
@@ -859,7 +859,7 @@ void SfxApplication::SetOptions(const SfxItemSet &rSet)
case SvtPathOptions::PATH_PALETTE: aPathOptions.SetPalettePath( sValue );break;
case SvtPathOptions::PATH_PLUGIN:
{
- String aTmp;
+ rtl::OUString aTmp;
if( ::utl::LocalFileHelper::ConvertURLToPhysicalName( sValue, aTmp ) )
aPathOptions.SetPluginPath( aTmp );
break;
@@ -867,7 +867,7 @@ void SfxApplication::SetOptions(const SfxItemSet &rSet)
case SvtPathOptions::PATH_STORAGE:
{
- String aTmp;
+ rtl::OUString aTmp;
if( ::utl::LocalFileHelper::ConvertURLToPhysicalName( sValue, aTmp ) )
aPathOptions.SetStoragePath( aTmp );
break;