From 472c0a3dcc8dd146e584c4b677a63854b8642f35 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 25 Jun 2015 12:36:19 +0200 Subject: loplugin:stringconstant: Flag more inefficiencies Change-Id: I36ae4b57049fe4deabe785ccfecf78608461086f --- cppu/source/typelib/typelib.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cppu') diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx index 740b9bcb7648..129b2c00a21c 100644 --- a/cppu/source/typelib/typelib.cxx +++ b/cppu/source/typelib/typelib.cxx @@ -1974,8 +1974,7 @@ extern "C" void SAL_CALL typelib_typedescription_getByName( if (0 == *ppRet) { // Check for derived interface member type: - sal_Int32 i1 = name.lastIndexOf( - rtl::OUString(":@")); + sal_Int32 i1 = name.lastIndexOf(":@"); if (i1 >= 0) { sal_Int32 i2 = i1 + RTL_CONSTASCII_LENGTH(":@"); sal_Int32 i3 = name.indexOf(',', i2); -- cgit