switch to the not-in-place variety of this function

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@773878 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Scott Wheeler 2008-02-11 22:50:46 +00:00
parent ddaf3cc479
commit ee557e29d5

View File

@ -70,7 +70,7 @@ public:
void testDecode1()
{
ByteVector a("\xff\x00\x00", 3);
ID3v2::SynchData::decode(a);
a = ID3v2::SynchData::decode(a);
CPPUNIT_ASSERT_EQUAL((unsigned int)2, a.size());
CPPUNIT_ASSERT_EQUAL(ByteVector("\xff\x00", 2), a);
}
@ -78,7 +78,7 @@ public:
void testDecode2()
{
ByteVector a("\xff\x44", 2);
ID3v2::SynchData::decode(a);
a = ID3v2::SynchData::decode(a);
CPPUNIT_ASSERT_EQUAL((unsigned int)2, a.size());
CPPUNIT_ASSERT_EQUAL(ByteVector("\xff\x44", 2), a);
}