From a23adf1a191c8968e673602df7db78c0b3015570 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 7 Jun 2017 14:03:13 +0200 Subject: Make use of OUString::startsWithIgnoreAsciiCase rest parameter Change-Id: Id5d1df581307ea6eb4e3e634d14ed3dbbe914544 --- ucb/source/ucp/ftp/ftpurl.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ucb') 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@host:port" OUString aExpr; -- cgit