Inspection: Declaration and assignment can be joined

This commit is contained in:
Urs Fleisch 2024-01-20 16:45:48 +01:00
parent 73aff544b3
commit 98175168f3
2 changed files with 2 additions and 4 deletions

View File

@ -405,8 +405,7 @@ public:
CPPUNIT_ASSERT_EQUAL(ByteVector("taglib"), v1);
CPPUNIT_ASSERT_EQUAL(ByteVector("tAglIb"), v2);
ByteVector v3;
v3 = ByteVector("0123456789").mid(3, 4);
ByteVector v3 = ByteVector("0123456789").mid(3, 4);
it1 = v3.begin();
it2 = v3.end() - 1;

View File

@ -84,8 +84,7 @@ public:
String latin = "Jos\xe9 Carlos";
CPPUNIT_ASSERT(strcmp(latin.toCString(true), "José Carlos") == 0);
String c;
c = "1";
String c = "1";
CPPUNIT_ASSERT(c == L"1");
c = L'\u4E00';