Skip to content

Commit 086a98c

Browse files
author
Your Name
committed
Format
1 parent 6fa028a commit 086a98c

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

lib/checkclass.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3452,8 +3452,14 @@ void CheckClassImpl::checkUselessOverride()
34523452

34533453
if (isSameCode) {
34543454
// bailout for shadowed members
3455-
if (!getDuplInheritedMembersRecursive(classScope->definedType, classScope->definedType, /*skipPrivate*/ false).empty() ||
3456-
!getDuplInheritedMemberFunctionsRecursive(classScope->definedType, classScope->definedType, /*skipPrivate*/ false).empty())
3455+
if (!getDuplInheritedMembersRecursive(classScope->definedType,
3456+
classScope->definedType,
3457+
/*skipPrivate*/ false)
3458+
.empty() ||
3459+
!getDuplInheritedMemberFunctionsRecursive(classScope->definedType,
3460+
classScope->definedType,
3461+
/*skipPrivate*/ false)
3462+
.empty())
34573463
continue;
34583464
uselessOverrideError(baseFunc, &func, true);
34593465
continue;

0 commit comments

Comments
 (0)