Skip to content

Commit 13ed2ef

Browse files
committed
astyle formatting
[ci skip]
1 parent 2ecab32 commit 13ed2ef

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/checkclass.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2454,9 +2454,9 @@ void CheckClass::checkDuplInheritedMembersRecursive(const Type* typeCurrent, con
24542454
for (const Variable &parentClassVarIt : parentClassIt.type->classScope->varlist) {
24552455
if (classVarIt.name() == parentClassVarIt.name() && !parentClassVarIt.isPrivate()) { // Check if the class and its parent have a common variable
24562456
duplInheritedMembersError(classVarIt.nameToken(), parentClassVarIt.nameToken(),
2457-
typeCurrent->name(), parentClassIt.type->name(), classVarIt.name(),
2458-
typeCurrent->classScope->type == Scope::eStruct,
2459-
parentClassIt.type->classScope->type == Scope::eStruct);
2457+
typeCurrent->name(), parentClassIt.type->name(), classVarIt.name(),
2458+
typeCurrent->classScope->type == Scope::eStruct,
2459+
parentClassIt.type->classScope->type == Scope::eStruct);
24602460
}
24612461
}
24622462
}

test/testclass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,9 +567,9 @@ class TestClass : public TestFixture {
567567
" int j;\n"
568568
"};\n"
569569
"class Derived2 : public Derived1 {\n"
570-
" int i;\n"
570+
" int i;\n"
571571
"};");
572-
ASSERT_EQUALS("[test.cpp:3] -> [test.cpp:10]: (warning) The class 'Derived2' defines member variable with name 'i' also defined in its parent class 'Base'.\n", errout.str());
572+
ASSERT_EQUALS("[test.cpp:3] -> [test.cpp:10]: (warning) The class 'Derived2' defines member variable with name 'i' also defined in its parent class 'Base'.\n", errout.str());
573573

574574
}
575575

0 commit comments

Comments
 (0)