Simplify use of OUString::copy

Change-Id: I2220ae614d8bc2f231947ec9336ef42e0e9398f1
This commit is contained in:
Stephan Bergmann
2014-03-10 18:00:56 +01:00
parent 0b291d42e7
commit f52ae6a8da

View File

@@ -100,7 +100,7 @@ void SvxHyperlinkDocTp::FillDlgFields(const OUString& rStrURL)
// set target in document at editfield
OUString aStrMark;
if ( nPos != -1 && nPos < rStrURL.getLength()-1 )
aStrMark = rStrURL.copy( nPos+1, rStrURL.getLength() - nPos - 1 );
aStrMark = rStrURL.copy( nPos+1 );
maEdTarget.SetText ( aStrMark );
ModifiedPathHdl_Impl ( NULL );