From e67c21ee0696cde7538016a813a5cbf39fb803b0 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sat, 29 Jun 2013 09:45:49 +0200 Subject: Search for char instead of 1 char long string, when possible. follow-up of a7674482254ee996b1c4fee60f3064778be369aa Change-Id: I25f40c601454c092078307d931333af1bc1447ac --- ucb/source/ucp/webdav/SerfSession.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ucb/source/ucp/webdav') diff --git a/ucb/source/ucp/webdav/SerfSession.cxx b/ucb/source/ucp/webdav/SerfSession.cxx index ffef27d93dc4..92cd797c4838 100644 --- a/ucb/source/ucp/webdav/SerfSession.cxx +++ b/ucb/source/ucp/webdav/SerfSession.cxx @@ -1547,7 +1547,7 @@ SerfSession::isDomainMatch( OUString certHostName ) if (hostName.equalsIgnoreAsciiCase( certHostName ) ) return sal_True; - if ( 0 == certHostName.indexOf( OUString::createFromAscii( "*" ) ) && + if ( 0 == certHostName.indexOf( '*' ) && hostName.getLength() >= certHostName.getLength() ) { OUString cmpStr = certHostName.copy( 1 ); -- cgit