[Libreoffice-commits] core.git: cui/source

Stephan Bergmann sbergman at redhat.com
Mon Mar 10 10:01:50 PDT 2014


 cui/source/dialogs/hldoctp.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f52ae6a8da2c2965e0c07020fda367095cea00e3
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Mar 10 18:00:56 2014 +0100

    Simplify use of OUString::copy
    
    Change-Id: I2220ae614d8bc2f231947ec9336ef42e0e9398f1

diff --git a/cui/source/dialogs/hldoctp.cxx b/cui/source/dialogs/hldoctp.cxx
index 8148680..f91f89c 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 );


More information about the Libreoffice-commits mailing list