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:
committed by
Michael Meeks
parent
0dde6d4a2d
commit
df645a2bd8
@@ -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
|
||||
|
Reference in New Issue
Block a user