Browse Source

Fixed a regression in the sharing of the method object from v-tables in certain corner cases.

QPaintDevice::initPainter appeared twice in the wrapper for QtGui but I could not isolate it in a test.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/600/head
Dimitar Dobrev 10 years ago
parent
commit
f6210f622e
  1. 9
      src/CppParser/Parser.cpp

9
src/CppParser/Parser.cpp

@ -1270,6 +1270,15 @@ Method* Parser::WalkMethodCXX(clang::CXXMethodDecl* MD) @@ -1270,6 +1270,15 @@ Method* Parser::WalkMethodCXX(clang::CXXMethodDecl* MD)
WalkFunction(MD, Method);
for (auto& M : Class->Methods)
{
if (M->USR == USR)
{
delete Method;
return M;
}
}
if (const CXXConstructorDecl* CD = dyn_cast<CXXConstructorDecl>(MD))
{
Method->IsDefaultConstructor = CD->isDefaultConstructor();

Loading…
Cancel
Save