From 9952c836c9b8f5d60b6529aa20629b4c7f2ed4b9 Mon Sep 17 00:00:00 2001 From: maximusron Date: Wed, 30 Aug 2023 23:14:10 +0530 Subject: [PATCH] Fix formatting --- clingwrapper/src/clingwrapper.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/clingwrapper/src/clingwrapper.cxx b/clingwrapper/src/clingwrapper.cxx index c1465870..a9d70e3c 100644 --- a/clingwrapper/src/clingwrapper.cxx +++ b/clingwrapper/src/clingwrapper.cxx @@ -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)); @@ -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 }