diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2012-07-12 22:10:17 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-07-13 16:36:04 +0200 |
commit | a7674482254ee996b1c4fee60f3064778be369aa (patch) | |
tree | dcafebf4d72d6d26ad949f0d18a000ea00f02315 /uui | |
parent | This look like the same as rLibName.endsWithIgnoreAsciiCase so kill it. Add m... (diff) | |
download | core-a7674482254ee996b1c4fee60f3064778be369aa.tar.gz core-a7674482254ee996b1c4fee60f3064778be369aa.zip |
Search for char instead of 1 char long string, when possible.
It is faster and even avoid memory allocation somtimes.
Change-Id: Ic12ff70e95953de44ef5798131150669d07a5445
Diffstat (limited to 'uui')
-rw-r--r-- | uui/source/iahndl-ssl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uui/source/iahndl-ssl.cxx b/uui/source/iahndl-ssl.cxx index 0639d68edb8f..462e2d572c11 100644 --- a/uui/source/iahndl-ssl.cxx +++ b/uui/source/iahndl-ssl.cxx @@ -97,7 +97,7 @@ isDomainMatch( if (hostName.equalsIgnoreAsciiCase( element )) return true; - if ( 0 == element.indexOf( rtl::OUString( "*" ) ) && + if ( 0 == element.indexOf( '*' ) && hostName.getLength() >= element.getLength() ) { rtl::OUString cmpStr = element.copy( 1 ); |