summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmlhelp/source/treeview/tvread.cxx10
1 files changed, 1 insertions, 9 deletions
diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx
index f0331dea7a29..ddfba452c67d 100644
--- a/xmlhelp/source/treeview/tvread.cxx
+++ b/xmlhelp/source/treeview/tvread.cxx
@@ -123,15 +123,7 @@ namespace treeview {
{
if( targetURL.isEmpty() )
{
- sal_Int32 len;
- for ( const TVDom* p = this;; p = p->parent )
- {
- len = p->application.getLength();
- if ( len != 0 )
- break;
- }
-
- OUStringBuffer strBuff( 22 + len + id.getLength() );
+ OUStringBuffer strBuff( 21 + id.getLength() );
strBuff.append(
"vnd.sun.star.help://"
).append(id);