From cf239da5c403164e75c369173fe6bed747de9e09 Mon Sep 17 00:00:00 2001 From: Christophe JAILLET Date: Mon, 6 Aug 2012 10:40:32 +0200 Subject: There is not need to allocate memory just for getting the 'indexOf' a literal within a OUString. Change-Id: Icc8e22c43f6ddca25cb284a3d45ab39680ad6d1f --- idlc/source/idlccompile.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'idlc') diff --git a/idlc/source/idlccompile.cxx b/idlc/source/idlccompile.cxx index 68cf26380aeb..0491046560a7 100644 --- a/idlc/source/idlccompile.cxx +++ b/idlc/source/idlccompile.cxx @@ -303,7 +303,7 @@ sal_Int32 compileFile(const OString * pathname) OSL_ASSERT(false); } - sal_Int32 idx= cpp.lastIndexOf(OUString( RTL_CONSTASCII_USTRINGPARAM("idlc")) ); + sal_Int32 idx= cpp.lastIndexOf("idlc"); cpp = cpp.copy(0, idx); #if defined(SAL_W32) -- cgit