mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 21:14:23 -04:00
Inspection: Code redundancies
This commit is contained in:
@ -37,7 +37,7 @@
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
std::string testPath = (argc > 1) ? std::string(argv[1]) : "";
|
||||
std::string testPath = argc > 1 ? std::string(argv[1]) : "";
|
||||
|
||||
// Create the event manager and test controller
|
||||
CppUnit::TestResult controller;
|
||||
|
@ -63,7 +63,7 @@ public:
|
||||
|
||||
Map<String, int> m2 = m1;
|
||||
auto it = m2.find("bob");
|
||||
(*it).second = 99;
|
||||
it->second = 99;
|
||||
CPPUNIT_ASSERT_EQUAL(9, m1["bob"]);
|
||||
CPPUNIT_ASSERT_EQUAL(99, m2["bob"]);
|
||||
}
|
||||
|
@ -183,10 +183,10 @@ public:
|
||||
Vorbis::File f(newname.c_str());
|
||||
List<FLAC::Picture *> lst = f.tag()->pictureList();
|
||||
CPPUNIT_ASSERT_EQUAL(static_cast<unsigned int>(1), lst.size());
|
||||
CPPUNIT_ASSERT_EQUAL(static_cast<int>(5), lst[0]->width());
|
||||
CPPUNIT_ASSERT_EQUAL(static_cast<int>(6), lst[0]->height());
|
||||
CPPUNIT_ASSERT_EQUAL(static_cast<int>(16), lst[0]->colorDepth());
|
||||
CPPUNIT_ASSERT_EQUAL(static_cast<int>(7), lst[0]->numColors());
|
||||
CPPUNIT_ASSERT_EQUAL(5, lst[0]->width());
|
||||
CPPUNIT_ASSERT_EQUAL(6, lst[0]->height());
|
||||
CPPUNIT_ASSERT_EQUAL(16, lst[0]->colorDepth());
|
||||
CPPUNIT_ASSERT_EQUAL(7, lst[0]->numColors());
|
||||
CPPUNIT_ASSERT_EQUAL(String("image/jpeg"), lst[0]->mimeType());
|
||||
CPPUNIT_ASSERT_EQUAL(String("new image"), lst[0]->description());
|
||||
CPPUNIT_ASSERT_EQUAL(ByteVector("JPEG data"), lst[0]->data());
|
||||
|
Reference in New Issue
Block a user