# HG changeset patch # User Sebastien Jodogne # Date 1589278850 -7200 # Node ID 30161a429a9150e5cddbbd0ed34ff42c14539392 # Parent abe6dcd7f35e8eea35076ef7c9fca9f927a7e246# Parent 4a0932c22ddba4b66c2e123bd00dd6c113eb3488 merge diff -r 4a0932c22ddb -r 30161a429a91 CodeAnalysis/ParseOrthancSDK.py --- a/CodeAnalysis/ParseOrthancSDK.py Wed May 06 14:57:28 2020 +0200 +++ b/CodeAnalysis/ParseOrthancSDK.py Tue May 12 12:20:50 2020 +0200 @@ -398,9 +398,14 @@ IsClassType(args[1].type) and CheckOnlySupportedArguments(args[2:])): print('Simple method of class %s, returning bytes: %s' % ( - args[0].type.get_pointee().spelling, + args[1].type.get_pointee().spelling, node.spelling)) + className = args[1].type.get_pointee().spelling + + if className.startswith('const '): + className = className[len('const '):] + method = GenerateFunctionBodyTemplate(node.spelling, args[0].type, args[2:]) method['self'] = ', self->object_' classes[className]['methods'].append(method)