diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-25 12:36:19 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-25 12:38:34 +0200 |
commit | 472c0a3dcc8dd146e584c4b677a63854b8642f35 (patch) | |
tree | 19d66d7cf9168e75002b830a325408ccdbff4118 | |
parent | 33be6e79a0ffd7823721ebe96784a5a68fe78f51 (diff) |
loplugin:stringconstant: Flag more inefficiencies
Change-Id: I36ae4b57049fe4deabe785ccfecf78608461086f
-rw-r--r-- | cppu/source/typelib/typelib.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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); |