Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronj0 committed Aug 30, 2023
1 parent d274ee3 commit 9952c83
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions clingwrapper/src/clingwrapper.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1742,12 +1742,10 @@ Cppyy::TCppIndex_t Cppyy::CompareMethodArgType(TCppMethod_t method, TCppIndex_t
TypeInfo_t *reqti = gInterpreter->TypeInfo_Factory(req_type.c_str());
void *reqqtp = gInterpreter->TypeInfo_QualTypePtr(reqti);

if(ArgSimilarityScore(argqtp, reqqtp) < 10)
{
if (ArgSimilarityScore(argqtp, reqqtp) < 10) {
return ArgSimilarityScore(argqtp, reqqtp);
}
else // Match using underlying types
{
else { // Match using underlying types
if(gInterpreter->IsPointerType(argqtp))
argqtp = gInterpreter->TypeInfo_QualTypePtr(gInterpreter->GetPointerType(argqtp));

Expand All @@ -1758,8 +1756,7 @@ Cppyy::TCppIndex_t Cppyy::CompareMethodArgType(TCppMethod_t method, TCppIndex_t
reqqtp = gInterpreter->TypeInfo_QualTypePtr(gInterpreter->GetUnqualifiedType(gInterpreter->TypeInfo_QualTypePtr(req_ul)));

return ArgSimilarityScore(argqtp, reqqtp);
}

}
}
return INT_MAX; // Method is not valid
}
Expand Down

0 comments on commit 9952c83

Please sign in to comment.