summaryrefslogtreecommitdiff
path: root/sw/source/ui/app/applab.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/app/applab.cxx')
-rw-r--r--sw/source/ui/app/applab.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/sw/source/ui/app/applab.cxx b/sw/source/ui/app/applab.cxx
index 66819aaa1ed5..55989b850ddb 100644
--- a/sw/source/ui/app/applab.cxx
+++ b/sw/source/ui/app/applab.cxx
@@ -375,10 +375,11 @@ void SwModule::InsertLab(SfxRequest& rReq, sal_Bool bLabel)
{
SwSectionData aSect(FILE_LINK_SECTION,
pSh->GetUniqueSectionName());
- String sLinkName(sfx2::cTokenSeperator);
- sLinkName += sfx2::cTokenSeperator;
- sLinkName += rtl::OUString(MASTER_LABEL);
- aSect.SetLinkFileName(sLinkName);
+ rtl::OUStringBuffer sLinkName;
+ sLinkName.append(sfx2::cTokenSeperator);
+ sLinkName.append(sfx2::cTokenSeperator);
+ sLinkName.append(MASTER_LABEL);
+ aSect.SetLinkFileName(sLinkName.makeStringAndClear());
aSect.SetProtectFlag(true);
pSh->Insert(aDotStr); // Dummytext to allocate the Section
pSh->SttDoc();