diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2013-08-12 21:29:22 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-08-13 11:11:42 +0000 |
commit | 87b5ac652d9625545a62fac83bccce369976140c (patch) | |
tree | c6b1bbfab3fc0bd187475d052142b63c809eda89 /xmlhelp/source/treeview/tvread.cxx | |
parent | 5a2c13a79a639a8ed98873d3acd7ed074c2b00b5 (diff) |
fdo#57950: Remove some chained appends in xmhelp
Change-Id: I4680547aa1d12d3e8eab3c33e3158845848c2068
Reviewed-on: https://gerrit.libreoffice.org/5376
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
Diffstat (limited to 'xmlhelp/source/treeview/tvread.cxx')
-rw-r--r-- | xmlhelp/source/treeview/tvread.cxx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx index 988f2073ae77..54814dddfdfa 100644 --- a/xmlhelp/source/treeview/tvread.cxx +++ b/xmlhelp/source/treeview/tvread.cxx @@ -913,8 +913,6 @@ void TVChildTarget::subst( OUString& instpath ) const // class ExtensionIteratorBase -static OUString aSlash("/"); -static OUString aHelpFilesBaseName("help"); static OUString aHelpMediaType("application/vnd.sun.star.help"); ExtensionIteratorBase::ExtensionIteratorBase( const OUString& aLanguage ) @@ -1212,15 +1210,7 @@ OUString TreeFileIterator::implGetTreeFileFromPackage OUString aLanguage = m_aLanguage; for( sal_Int32 iPass = 0 ; iPass < 2 ; ++iPass ) { - OUStringBuffer aStrBuf; - aStrBuf.append( xPackage->getURL() ); - aStrBuf.append( aSlash ); - aStrBuf.append( aLanguage ); - aStrBuf.append( aSlash ); - aStrBuf.append( aHelpFilesBaseName ); - aStrBuf.appendAscii( ".tree" ); - - aRetFile = expandURL( aStrBuf.makeStringAndClear() ); + aRetFile = expandURL( xPackage->getURL() + "/" + aLanguage + "/help.tree" ); if( iPass == 0 ) { if( m_xSFA->exists( aRetFile ) ) |