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 --- svtools/source/control/breadcrumb.cxx | 4 ++-- svtools/source/uno/wizard/unowizard.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'svtools') diff --git a/svtools/source/control/breadcrumb.cxx b/svtools/source/control/breadcrumb.cxx index fbfdae83315f..3bb9fa390263 100644 --- a/svtools/source/control/breadcrumb.cxx +++ b/svtools/source/control/breadcrumb.cxx @@ -141,7 +141,7 @@ void Breadcrumb::SetURL( const OUString& rURL ) appendField(); unsigned int nEnd = sPath.indexOf( '/', nPos + 1 ); - OUString sLabel = OUString( sPath.getStr() + nPos + 1, nEnd - nPos - 1 ); + OUString sLabel = sPath.copy( nPos + 1, nEnd - nPos - 1 ); if( m_eMode == SvtBreadcrumbMode::ALL_VISITED ) { @@ -150,7 +150,7 @@ void Breadcrumb::SetURL( const OUString& rURL ) } m_aLinks[i]->SetText( sLabel ); - m_aLinks[i]->SetURL( sRootPath + OUString( sPath.getStr(), nEnd ) ); + m_aLinks[i]->SetURL( sRootPath + sPath.copy( 0, nEnd ) ); m_aLinks[i]->Hide(); m_aLinks[i]->Enable(); diff --git a/svtools/source/uno/wizard/unowizard.cxx b/svtools/source/uno/wizard/unowizard.cxx index 605f1a17007f..447765bc0fdf 100644 --- a/svtools/source/uno/wizard/unowizard.cxx +++ b/svtools/source/uno/wizard/unowizard.cxx @@ -157,7 +157,7 @@ namespace { INetURLObject aHID( aTmp ); if ( aHID.GetProtocol() == INetProtocol::NotValid ) aBuffer.append( INET_HID_SCHEME ); - aBuffer.append( aTmp.getStr() ); + aBuffer.append( aTmp ); return aBuffer.makeStringAndClear(); } -- cgit