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

Stephan Bergmann sbergman at redhat.com
Wed Jun 7 12:03:42 UTC 2017


 ucb/source/ucp/ftp/ftpurl.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit a23adf1a191c8968e673602df7db78c0b3015570
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Jun 7 14:03:13 2017 +0200

    Make use of OUString::startsWithIgnoreAsciiCase rest parameter
    
    Change-Id: Id5d1df581307ea6eb4e3e634d14ed3dbbe914544

diff --git a/ucb/source/ucp/ftp/ftpurl.cxx b/ucb/source/ucp/ftp/ftpurl.cxx
index 89a44774799e..90531769bc43 100644
--- a/ucb/source/ucp/ftp/ftpurl.cxx
+++ b/ucb/source/ucp/ftp/ftpurl.cxx
@@ -145,9 +145,8 @@ void FTPURL::parse(const OUString& url)
 {
     OUString aPassword, urlRest;
 
-    if(url.getLength() < 6 || !url.startsWithIgnoreAsciiCase("ftp://"))
+    if(url.getLength() < 6 || !url.startsWithIgnoreAsciiCase("ftp://", &urlRest))
         throw malformed_exception();
-    urlRest = url.copy(6);
 
     // determine "username:password at host:port"
     OUString aExpr;


More information about the Libreoffice-commits mailing list