Skip to content

Commit 8daa148

Browse files
fix CPPMethod::GetPrototype according to InterOp API (#116)
1 parent 104cdfb commit 8daa148

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/CPPMethod.cxx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,11 +399,9 @@ PyObject* CPyCppyy::CPPMethod::GetPrototype(bool fa)
399399
// gives
400400
// a::b
401401
std::string finalscope = Cppyy::GetScopedFinalName(fScope);
402-
return CPyCppyy_PyText_FromFormat("%s%s %s%s%s%s",
402+
return CPyCppyy_PyText_FromFormat("%s%s %s%s",
403403
(Cppyy::IsStaticMethod(fMethod) ? "static " : ""),
404404
Cppyy::GetMethodReturnTypeAsString(fMethod).c_str(),
405-
finalscope.c_str(),
406-
(finalscope.empty() ? "" : "::"), // Add final set of '::' if the method is scoped in namespace(s)
407405
Cppyy::GetScopedFinalName(fMethod).c_str(),
408406
GetSignatureString(fa).c_str());
409407
}

0 commit comments

Comments
 (0)