From 8d959144dd5d1ac186d9dc28c6f0f1468ceb3993 Mon Sep 17 00:00:00 2001 From: Vipul Cariappa Date: Fri, 11 Jul 2025 10:31:21 +0200 Subject: [PATCH] fix CPPMethod::GetPrototype according to InterOp API --- src/CPPMethod.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/CPPMethod.cxx b/src/CPPMethod.cxx index 8ef7e55..dd4170c 100644 --- a/src/CPPMethod.cxx +++ b/src/CPPMethod.cxx @@ -399,11 +399,9 @@ PyObject* CPyCppyy::CPPMethod::GetPrototype(bool fa) // gives // a::b std::string finalscope = Cppyy::GetScopedFinalName(fScope); - return CPyCppyy_PyText_FromFormat("%s%s %s%s%s%s", + return CPyCppyy_PyText_FromFormat("%s%s %s%s", (Cppyy::IsStaticMethod(fMethod) ? "static " : ""), Cppyy::GetMethodReturnTypeAsString(fMethod).c_str(), - finalscope.c_str(), - (finalscope.empty() ? "" : "::"), // Add final set of '::' if the method is scoped in namespace(s) Cppyy::GetScopedFinalName(fMethod).c_str(), GetSignatureString(fa).c_str()); }