Commit aa30d197 authored by David Gobbi's avatar David Gobbi Committed by Marcus D. Hanwell
Browse files

BUG: Fix destructor check in vtkWrapPython, "~" might not be first.

parent 242f3e9f
......@@ -2046,6 +2046,7 @@ static int vtkWrapPython_MethodCheck(
int args_ok = 1;
int argType = 0;
int returnType = 0;
char *cp;
/* some functions will not get wrapped no matter what else,
and some really common functions will appear only in vtkObjectPython */
......@@ -2157,9 +2158,13 @@ static int vtkWrapPython_MethodCheck(
else
{
/* check for destructor */
if (currentFunction->Signature[0] == '~')
cp = currentFunction->Signature;
for (i = 0; cp[i] != '\0' && cp[i] != '('; i++)
{
args_ok = 0;
if (cp[i] == '~')
{
args_ok = 0;
}
}
/* check for constructors */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment