Avoid creating new String object when comparing

This commit is contained in:
Tsuda Kageyu
2013-03-18 02:51:11 +09:00
parent 0792eedd12
commit 6e3639de9e
3 changed files with 35 additions and 6 deletions

View File

@ -116,7 +116,7 @@ public:
CPPUNIT_ASSERT_EQUAL(a, String(d, String::UTF16));
}
// this test is expected to print "TagLib: String::prepare() -
// this test is expected to print "TagLib: String::copyFromUTF16() -
// Invalid UTF16 string." on the console 3 times
void testUTF16DecodeInvalidBOM()
{