]> granicus.if.org Git - taglib/commitdiff
switch to the not-in-place variety of this function
authorScott Wheeler <wheeler@kde.org>
Mon, 11 Feb 2008 22:50:46 +0000 (22:50 +0000)
committerScott Wheeler <wheeler@kde.org>
Mon, 11 Feb 2008 22:50:46 +0000 (22:50 +0000)
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@773878 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

tests/test_synchdata.cpp

index 59b43b672624e00b29c8d516054c13579d9bb0d7..04ef5359dcb44f2c7607bcf5802287a35ee964c9 100644 (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);
   }