From 9881bea8d41997fb46579eb5f0314300159c96cc Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 28 May 2017 19:41:52 +0200 Subject: remove unnecessary use of OUString::getStr Change-Id: I3d13e1c0bb6aa4a7aacc463198747c1368ebc9b4 Reviewed-on: https://gerrit.libreoffice.org/38114 Tested-by: Jenkins Reviewed-by: Noel Grandin --- unotools/source/misc/fontdefs.cxx | 2 +- unotools/source/ucbhelper/tempfile.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'unotools') diff --git a/unotools/source/misc/fontdefs.cxx b/unotools/source/misc/fontdefs.cxx index d74b5f0e3090..8a625388d56e 100644 --- a/unotools/source/misc/fontdefs.cxx +++ b/unotools/source/misc/fontdefs.cxx @@ -479,7 +479,7 @@ OUString GetNextFontToken( const OUString& rTokenStr, sal_Int32& rIndex ) } } - return OUString( rTokenStr.getStr() + nTokenStart, nTokenLen ); + return rTokenStr.copy( nTokenStart, nTokenLen ); } static bool ImplIsFontToken( const OUString& rName, const OUString& rToken ) diff --git a/unotools/source/ucbhelper/tempfile.cxx b/unotools/source/ucbhelper/tempfile.cxx index 0cc28876d78c..3b55739003c8 100644 --- a/unotools/source/ucbhelper/tempfile.cxx +++ b/unotools/source/ucbhelper/tempfile.cxx @@ -246,7 +246,7 @@ OUString lcl_createName( sal_Int32 nOffset = rLeadingChars.lastIndexOf("/"); if (-1 != nOffset) { - OUString aDirName = aName + OUString( rLeadingChars.getStr(), nOffset ); + OUString aDirName = aName + rLeadingChars.copy( 0, nOffset ); TempDirCreatedObserver observer; FileBase::RC err = Directory::createPath( aDirName, &observer ); if ( err != FileBase::E_None && err != FileBase::E_EXIST ) -- cgit