summaryrefslogtreecommitdiff
path: root/ucb/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-06-07 14:03:13 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-06-07 14:03:13 +0200
commita23adf1a191c8968e673602df7db78c0b3015570 (patch)
treea0cf78fcc84e08767f8836106ebde6f2fc608b94 /ucb/source
parent9417b1132a7c4147ec904e041925ffbd05d67e62 (diff)
Make use of OUString::startsWithIgnoreAsciiCase rest parameter
Change-Id: Id5d1df581307ea6eb4e3e634d14ed3dbbe914544
Diffstat (limited to 'ucb/source')
-rw-r--r--ucb/source/ucp/ftp/ftpurl.cxx3
1 files changed, 1 insertions, 2 deletions
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;