String->OUString

This commit is contained in:
August Sodora
2011-12-09 00:56:17 -05:00
parent 9c2f9c79ac
commit 7c8b0959fd
2 changed files with 9 additions and 7 deletions

View File

@@ -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: */

View File

@@ -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 );