There is not need to allocate memory just for getting the 'indexOf'

a literal within a OUString.

Change-Id: I01ca30c68228f81b3d313dfca5b975448f3c4fc7
This commit is contained in:
Christophe JAILLET
2012-07-14 18:00:06 +02:00
committed by Michael Meeks
parent 0dde6d4a2d
commit df645a2bd8
31 changed files with 73 additions and 75 deletions

View File

@@ -182,7 +182,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(/*argc*/, argv)
message += s_test__cppu_writeSharedLibComponentInfo(":affine");
message += s_test__cppu_writeSharedLibComponentInfo("");
if (message.indexOf(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("FAILED"))) == -1)
if (message.indexOf("FAILED") == -1)
message += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TESTS PASSED\n"));
else