diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-14 08:16:35 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-14 08:17:32 +0200 |
commit | d366c9b20ec86f3fe521812a0c22def3bfd1f05e (patch) | |
tree | 4bd09438c8cd8f0dbcd0881fc923d56a0a721fc5 /xmlhelp/source/treeview | |
parent | d2fa59e4025050c9b668ecff379d668f0db52639 (diff) |
remove unnecessary sal_Unicode casts in various places
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
Diffstat (limited to 'xmlhelp/source/treeview')
-rw-r--r-- | xmlhelp/source/treeview/tvread.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx index 1ae39bbe1e92..3e1df8327f87 100644 --- a/xmlhelp/source/treeview/tvread.cxx +++ b/xmlhelp/source/treeview/tvread.cxx @@ -192,7 +192,7 @@ void SAL_CALL ConfigData::replaceName( OUString& oustring ) const bool cap = false; OUStringBuffer aStrBuf( 0 ); - while( ( idx = oustring.indexOf( sal_Unicode('%'),++idx ) ) != -1 ) + while( ( idx = oustring.indexOf( '%', ++idx ) ) != -1 ) { if( oustring.indexOf( prodName,idx ) == idx ) off = PRODUCTNAME; @@ -358,7 +358,7 @@ TVRead::getByHierarchicalName( const OUString& aName ) sal_Int32 idx; OUString name( aName ); - if( ( idx = name.indexOf( sal_Unicode( '/' ) ) ) != -1 && + if( ( idx = name.indexOf( '/' ) ) != -1 && name.copy( 0,idx ).equalsAscii( "Children" ) ) return Children->getByHierarchicalName( name.copy( 1 + idx ) ); @@ -372,7 +372,7 @@ TVRead::hasByHierarchicalName( const OUString& aName ) sal_Int32 idx; OUString name( aName ); - if( ( idx = name.indexOf( sal_Unicode( '/' ) ) ) != -1 && + if( ( idx = name.indexOf( '/' ) ) != -1 && name.copy( 0,idx ).equalsAscii( "Children" ) ) return Children->hasByHierarchicalName( name.copy( 1 + idx ) ); @@ -619,7 +619,7 @@ TVChildTarget::getByHierarchicalName( const OUString& aName ) sal_Int32 idx; OUString name( aName ); - if( ( idx = name.indexOf( sal_Unicode( '/' ) ) ) != -1 ) + if( ( idx = name.indexOf( '/' ) ) != -1 ) { OUString num( name.getStr()+2,idx-4 ); sal_Int32 pref = num.toInt32() - 1; @@ -640,7 +640,7 @@ TVChildTarget::hasByHierarchicalName( const OUString& aName ) sal_Int32 idx; OUString name( aName ); - if( ( idx = name.indexOf( sal_Unicode( '/' ) ) ) != -1 ) + if( ( idx = name.indexOf( '/' ) ) != -1 ) { OUString num( name.getStr()+2,idx-4 ); sal_Int32 pref = num.toInt32() - 1; @@ -717,7 +717,7 @@ ConfigData TVChildTarget::init( const Reference< XComponentContext >& xContext ) OUString url; osl::FileBase::RC errFile = osl::FileBase::getFileURLFromSystemPath( instPath,url ); if( errFile != osl::FileBase::E_None ) return configData; - if( url.lastIndexOf( sal_Unicode( '/' ) ) != url.getLength() - 1 ) + if( !url.endsWith("/") ) url += "/"; OUString ret; sal_Int32 idx; @@ -762,7 +762,7 @@ ConfigData TVChildTarget::init( const Reference< XComponentContext >& xContext ) { aFileUrl = aFileStatus.getFileURL(); aFileName = aFileStatus.getFileName(); - idx_ = aFileName.lastIndexOf( sal_Unicode( '.' ) ); + idx_ = aFileName.lastIndexOf( '.' ); if( idx_ == -1 ) continue; |