summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2012-07-12 22:10:17 +0200
committerEike Rathke <erack@redhat.com>2012-07-13 16:36:04 +0200
commita7674482254ee996b1c4fee60f3064778be369aa (patch)
treedcafebf4d72d6d26ad949f0d18a000ea00f02315 /extensions
parent0cba5e5d25bf2f30c8500e1e673a7ef9e8e8d352 (diff)
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 'extensions')
-rw-r--r--extensions/source/plugin/base/nfuncs.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/source/plugin/base/nfuncs.cxx b/extensions/source/plugin/base/nfuncs.cxx
index b06665b1175d..b37a1c94d9df 100644
--- a/extensions/source/plugin/base/nfuncs.cxx
+++ b/extensions/source/plugin/base/nfuncs.cxx
@@ -142,7 +142,7 @@ NPNetscapeFuncs aNPNFuncs =
static ::rtl::OString normalizeURL( XPlugin_Impl* plugin, const ::rtl::OString& url )
{
::rtl::OString aLoadURL;
- if( url.indexOf( ":" ) == -1 )
+ if( url.indexOf( ':' ) == -1 )
{
aLoadURL = ::rtl::OUStringToOString( plugin->getCreationURL(), plugin->getTextEncoding() );
int nPos;