diff options
author | Noel Grandin <noel@peralex.com> | 2013-08-07 14:03:59 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-08-12 11:56:49 +0200 |
commit | db3f16317e0b0f931fdfcb6f19f8cc474bd70683 (patch) | |
tree | e7bde547793da27ef2861f6f051efb80c3b59207 /vcl/source/gdi/configsettings.cxx | |
parent | 8129fffd1beefbc2844fcf3912c65290ce657d79 (diff) |
convert String to OUString in VCL
Change-Id: Ie5c6874298641dc6fc1b6b4e2206a704acd7cc10
Diffstat (limited to 'vcl/source/gdi/configsettings.cxx')
-rw-r--r-- | vcl/source/gdi/configsettings.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vcl/source/gdi/configsettings.cxx b/vcl/source/gdi/configsettings.cxx index 30b6f463f38c..9b6dcdd2eed9 100644 --- a/vcl/source/gdi/configsettings.cxx +++ b/vcl/source/gdi/configsettings.cxx @@ -68,7 +68,7 @@ void SettingsConfigItem::Commit() for( group = m_aSettings.begin(); group != m_aSettings.end(); ++group ) { - String aKeyName( group->first ); + OUString aKeyName( group->first ); /*sal_Bool bAdded =*/ AddNode( OUString(), aKeyName ); Sequence< PropertyValue > aValues( group->second.size() ); PropertyValue* pValues = aValues.getArray(); @@ -76,9 +76,9 @@ void SettingsConfigItem::Commit() SmallOUStrMap::const_iterator it; for( it = group->second.begin(); it != group->second.end(); ++it ) { - String aName( aKeyName ); - aName.Append( '/' ); - aName.Append( String( it->first ) ); + OUString aName( aKeyName ); + aName += OUString('/'); + aName += it->first; pValues[nIndex].Name = aName; pValues[nIndex].Handle = 0; pValues[nIndex].Value <<= it->second; @@ -110,16 +110,16 @@ void SettingsConfigItem::getValues() OUStringToOString( aNames.getConstArray()[j], RTL_TEXTENCODING_ASCII_US ).getStr() ); #endif - String aKeyName( aNames.getConstArray()[j] ); + OUString aKeyName( aNames.getConstArray()[j] ); Sequence< OUString > aKeys( GetNodeNames( aKeyName ) ); Sequence< OUString > aSettingsKeys( aKeys.getLength() ); const OUString* pFrom = aKeys.getConstArray(); OUString* pTo = aSettingsKeys.getArray(); for( int m = 0; m < aKeys.getLength(); m++ ) { - String aName( aKeyName ); - aName.Append( '/' ); - aName.Append( String( pFrom[m] ) ); + OUString aName( aKeyName ); + aName += OUString('/'); + aName += pFrom[m]; pTo[m] = aName; } Sequence< Any > aValues( GetProperties( aSettingsKeys ) ); |