diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-12 17:53:23 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-12 17:53:23 +0100 |
commit | fbcb2556be11225d14e62fb1849930f5953588dc (patch) | |
tree | 4426e8ad8878ef17e6341d90f4d3f65c41c23f86 /ucb/source/ucp/file/prov.cxx | |
parent | 34a903796c97601c4f686c8f4fc0bfca1426d8ce (diff) |
ucb: Use appropriate OUString functions on string constants
Change-Id: I6839e032c981fcff472f29c51c84503d6370fd1c
Diffstat (limited to 'ucb/source/ucp/file/prov.cxx')
-rw-r--r-- | ucb/source/ucp/file/prov.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ucb/source/ucp/file/prov.cxx b/ucb/source/ucp/file/prov.cxx index 95400bdc577a..526c19a35226 100644 --- a/ucb/source/ucp/file/prov.cxx +++ b/ucb/source/ucp/file/prov.cxx @@ -114,7 +114,7 @@ FileProvider::initialize( OUString config; if( aArguments.getLength() > 0 && (aArguments[0] >>= config) && - config.equalsAscii("NoConfig") ) + config == "NoConfig" ) m_pMyShell = new shell( m_xContext, this, false ); else m_pMyShell = new shell( m_xContext, this, true ); @@ -473,9 +473,9 @@ FileProvider::setPropertyValue( const OUString& aPropertyName, WrappedTargetException, RuntimeException, std::exception ) { - if( aPropertyName.equalsAscii( "FileSystemNotation" ) || - aPropertyName.equalsAscii( "HomeDirectory" ) || - aPropertyName.equalsAscii( "HostName" ) ) + if( aPropertyName == "FileSystemNotation" || + aPropertyName == "HomeDirectory" || + aPropertyName == "HostName" ) return; else throw UnknownPropertyException( THROW_WHERE ); @@ -491,19 +491,19 @@ FileProvider::getPropertyValue( RuntimeException, std::exception ) { initProperties(); - if( aPropertyName.equalsAscii( "FileSystemNotation" ) ) + if( aPropertyName == "FileSystemNotation" ) { Any aAny; aAny <<= m_FileSystemNotation; return aAny; } - else if( aPropertyName.equalsAscii( "HomeDirectory" ) ) + else if( aPropertyName == "HomeDirectory" ) { Any aAny; aAny <<= m_HomeDirectory; return aAny; } - else if( aPropertyName.equalsAscii( "HostName" ) ) + else if( aPropertyName == "HostName" ) { Any aAny; aAny <<= m_HostName; |