From: Scott Wheeler Date: Mon, 11 Feb 2008 22:50:46 +0000 (+0000) Subject: switch to the not-in-place variety of this function X-Git-Tag: v1.5~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ee557e29d5d31dfdad94be444fa9f464a4a32854;p=taglib 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 --- diff --git a/tests/test_synchdata.cpp b/tests/test_synchdata.cpp index 59b43b67..04ef5359 100644 --- a/tests/test_synchdata.cpp +++ b/tests/test_synchdata.cpp @@ -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); }