We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 104cdfb commit 8daa148Copy full SHA for 8daa148
src/CPPMethod.cxx
@@ -399,11 +399,9 @@ PyObject* CPyCppyy::CPPMethod::GetPrototype(bool fa)
399
// gives
400
// a::b
401
std::string finalscope = Cppyy::GetScopedFinalName(fScope);
402
- return CPyCppyy_PyText_FromFormat("%s%s %s%s%s%s",
+ return CPyCppyy_PyText_FromFormat("%s%s %s%s",
403
(Cppyy::IsStaticMethod(fMethod) ? "static " : ""),
404
Cppyy::GetMethodReturnTypeAsString(fMethod).c_str(),
405
- finalscope.c_str(),
406
- (finalscope.empty() ? "" : "::"), // Add final set of '::' if the method is scoped in namespace(s)
407
Cppyy::GetScopedFinalName(fMethod).c_str(),
408
GetSignatureString(fa).c_str());
409
}
0 commit comments