From 6ce8ae5f0ca3cda17a1e708a273419f46bd0e8b0 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 25 Jun 2015 12:36:23 +0200 Subject: [PATCH] loplugin:stringconstant: Flag more inefficiencies Change-Id: I5fe4002c3c0065dfe93be0d8f47df90d57af898b --- cppuhelper/source/factory.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cppuhelper/source/factory.cxx b/cppuhelper/source/factory.cxx index f7f7900740d2..6040cf6cddde 100644 --- a/cppuhelper/source/factory.cxx +++ b/cppuhelper/source/factory.cxx @@ -782,8 +782,7 @@ Reference< XInterface > ORegistryFactoryHelper::createModuleFactory() aLocation = xLocationKey->getAsciiValue(); // search protocol delimiter - sal_Int32 nPos = aLocation.indexOf( - OUString("://") ); + sal_Int32 nPos = aLocation.indexOf("://"); if( nPos != -1 ) { aActivatorName = aLocation.copy( 0, nPos );