Internals: cppcheck fixes. No functional change. (#6687)

This commit is contained in:
Wilson Snyder
2025-11-12 18:54:22 -05:00
committed by GitHub
parent 67094f6a88
commit 5c0ad5bd1f
38 changed files with 122 additions and 111 deletions
+2 -2
View File
@@ -55,14 +55,14 @@ V3AST_VCMETHOD_ITEMDATA_DECL;
// VCMethod information
VCMethod VCMethod::arrayMethod(const string& name) {
for (auto& it : s_itemData)
for (const auto& it : s_itemData)
if (it.m_name == name) return it.m_e;
v3fatalSrc("Not a method name known to VCMethod::s_itemData: '" << name << '\'');
return VCMethod{};
}
void VCMethod::selfTest() {
int i = 0;
for (auto& it : s_itemData) {
for (const auto& it : s_itemData) {
VCMethod exp{i};
UASSERT_STATIC(it.m_e == exp,
"VCMethod::s_itemData table rows are out-of-order, starting at row "s