summaryrefslogtreecommitdiff
path: root/cui/source/options/treeopt.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/options/treeopt.cxx')
-rw-r--r--cui/source/options/treeopt.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx
index 9d55bd91c81e..fe88b2a8b7a6 100644
--- a/cui/source/options/treeopt.cxx
+++ b/cui/source/options/treeopt.cxx
@@ -1049,12 +1049,10 @@ void OfaTreeOptionsDialog::SelectHdl_Impl()
}
{
- OUStringBuffer sTitleBuf(sTitle);
- sTitleBuf.append(" - ");
- sTitleBuf.append(pTreeLB->GetEntryText(pParent));
- sTitleBuf.append(" - ");
- sTitleBuf.append(pTreeLB->GetEntryText(pEntry));
- SetText(sTitleBuf.makeStringAndClear());
+ OUString sTitleText = sTitle
+ + " - " + pTreeLB->GetEntryText(pParent)
+ + " - " + pTreeLB->GetEntryText(pEntry);
+ SetText(sTitleText);
}
pCurrentPageEntry = pEntry;