diff options
author | Noel Grandin <noel@peralex.com> | 2013-10-31 13:17:17 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-07 13:22:56 +0200 |
commit | 58fa3d50aa43102cea8690fd6bf51fb80c007955 (patch) | |
tree | 3da290f9feccce7841ef0bc26d37755acee655a6 /xmlhelp/source/treeview | |
parent | c87a8fc6488dcbb2378acbfa921ec2d7ced0a73a (diff) |
remove unnecessary use of OUString constructor in XMLHELP module
Change-Id: I033bcf9cddc58f605fe8d65731f8b312410da7e5
Diffstat (limited to 'xmlhelp/source/treeview')
-rw-r--r-- | xmlhelp/source/treeview/tvread.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx index c0c62fcd24a4..722784c39652 100644 --- a/xmlhelp/source/treeview/tvread.cxx +++ b/xmlhelp/source/treeview/tvread.cxx @@ -329,9 +329,9 @@ TVRead::getElementNames( ) { Sequence< OUString > seq( 3 ); - seq[0] = OUString( "Title" ); - seq[1] = OUString( "TargetURL" ); - seq[2] = OUString( "Children" ); + seq[0] = "Title"; + seq[1] = "TargetURL"; + seq[2] = "Children"; return seq; } @@ -669,7 +669,7 @@ ConfigData TVChildTarget::init( const Reference< XComponentContext >& xContext ) OUString instPath( getKey( xHierAccess,"Path/Current/Help" ) ); if( instPath.isEmpty() ) // try to determine path from default - instPath = OUString( "$(instpath)/help" ); + instPath = "$(instpath)/help"; // replace anything like $(instpath); subst( instPath ); @@ -690,7 +690,7 @@ ConfigData TVChildTarget::init( const Reference< XComponentContext >& xContext ) uno::Sequence < uno::Any > lParams(1); beans::PropertyValue aParam ; - aParam.Name = OUString("nodepath"); + aParam.Name = "nodepath"; aParam.Value <<= OUString("/org.openoffice.Setup/Product"); lParams[0] = uno::makeAny(aParam); @@ -718,7 +718,7 @@ ConfigData TVChildTarget::init( const Reference< XComponentContext >& xContext ) 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 ) - url += OUString( "/" ); + url += "/"; OUString ret; sal_Int32 idx; osl::DirectoryItem aDirItem; @@ -731,8 +731,8 @@ ConfigData TVChildTarget::init( const Reference< XComponentContext >& xContext ) ret = locale.copy( 0,idx ); else { - locale = OUString( "en-US" ); - ret = OUString("en"); + locale = "en-US"; + ret = "en"; } url = url + ret; @@ -1229,7 +1229,7 @@ OUString TreeFileIterator::implGetTreeFileFromPackage if( m_xSFA->exists( aRetFile ) ) rnFileSize = m_xSFA->getSize( aRetFile ); else - aRetFile = OUString(); + aRetFile = ""; return aRetFile; } |