summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/hldoctp.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-03-10 18:00:56 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-03-10 18:01:22 +0100
commitf52ae6a8da2c2965e0c07020fda367095cea00e3 (patch)
treeb98f86ae04dc523a62a17c58c7ac7caf8c1335af /cui/source/dialogs/hldoctp.cxx
parent0b291d42e7fc3c787af0e88ee7c5499c333b14b2 (diff)
Simplify use of OUString::copy
Change-Id: I2220ae614d8bc2f231947ec9336ef42e0e9398f1
Diffstat (limited to 'cui/source/dialogs/hldoctp.cxx')
-rw-r--r--cui/source/dialogs/hldoctp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/dialogs/hldoctp.cxx b/cui/source/dialogs/hldoctp.cxx
index 8148680db6e4..f91f89c29581 100644
--- a/cui/source/dialogs/hldoctp.cxx
+++ b/cui/source/dialogs/hldoctp.cxx
@@ -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 );