summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/bastype3.cxx14
-rw-r--r--basctl/source/inc/bastypes.hxx2
2 files changed, 9 insertions, 7 deletions
diff --git a/basctl/source/basicide/bastype3.cxx b/basctl/source/basicide/bastype3.cxx
index 9f41a7a8842b..4128474acc40 100644
--- a/basctl/source/basicide/bastype3.cxx
+++ b/basctl/source/basicide/bastype3.cxx
@@ -491,13 +491,15 @@ SvLBoxEntry* BasicTreeListBox::FindRootEntry( const ScriptDocument& rDocument, L
return 0;
}
-String CreateMgrAndLibStr( const String& rMgrName, const String& rLibName )
+::rtl::OUString CreateMgrAndLibStr( const ::rtl::OUString& rMgrName, const ::rtl::OUString& rLibName )
{
- String aName( '[' );
- aName += rMgrName;
- aName += String( RTL_CONSTASCII_USTRINGPARAM( "]." ) );
- aName += rLibName;
- return aName;
+ ::rtl::OUStringBuffer aName;
+ aName.append('[');
+ aName.append(rMgrName);
+ aName.append(']');
+ aName.append('.');
+ aName.append(rLibName);
+ return aName.makeStringAndClear();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basctl/source/inc/bastypes.hxx b/basctl/source/inc/bastypes.hxx
index 7b177a94c989..c204f8d42f9e 100644
--- a/basctl/source/inc/bastypes.hxx
+++ b/basctl/source/inc/bastypes.hxx
@@ -271,7 +271,7 @@ public:
};
void CutLines( ::rtl::OUString& rStr, sal_Int32 nStartLine, sal_Int32 nLines, sal_Bool bEraseTrailingEmptyLines = sal_False );
-String CreateMgrAndLibStr( const String& rMgrName, const String& rLibName );
+::rtl::OUString CreateMgrAndLibStr( const ::rtl::OUString& rMgrName, const ::rtl::OUString& rLibName );
sal_uLong CalcLineCount( SvStream& rStream );
bool QueryReplaceMacro( const ::rtl::OUString& rName, Window* pParent = 0 );