From bd4f553ef03b45b4126314fa8287f933988575ea Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 18 Jun 2012 18:40:40 +0100 Subject: remove some UniString ctors Change-Id: Ic2e712f4447b733b79d980e178d9d6d9d8bf0e40 --- unotools/source/i18n/textsearch.cxx | 2 +- unotools/source/ucbhelper/tempfile.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'unotools') diff --git a/unotools/source/i18n/textsearch.cxx b/unotools/source/i18n/textsearch.cxx index cabbba4ca136..c541790b40b8 100644 --- a/unotools/source/i18n/textsearch.cxx +++ b/unotools/source/i18n/textsearch.cxx @@ -291,7 +291,7 @@ void TextSearch::ReplaceBackReferences( String& rReplaceStr, const String &rStr, { if( rResult.subRegExpressions > 0 ) { - String sTab( '\t' ); + rtl::OUString sTab( '\t' ); sal_Unicode sSrchChrs[] = {'\\', '&', '$', 0}; String sTmp; xub_StrLen nPos = 0; diff --git a/unotools/source/ucbhelper/tempfile.cxx b/unotools/source/ucbhelper/tempfile.cxx index ed1979319184..6b634cb76529 100644 --- a/unotools/source/ucbhelper/tempfile.cxx +++ b/unotools/source/ucbhelper/tempfile.cxx @@ -468,7 +468,7 @@ String TempFile::SetTempNameBaseDirectory( const String &rBaseName ) bRet = sal_True; ::rtl::OUString &rTempNameBase_Impl = TempNameBase_Impl::get(); rTempNameBase_Impl = rBaseName; - rTempNameBase_Impl += String( '/' ); + rTempNameBase_Impl += rtl::OUString('/'); TempFile aBase( NULL, sal_True ); if ( aBase.IsValid() ) -- cgit