# HG changeset patch # User Sebastien Jodogne # Date 1589278839 -7200 # Node ID abe6dcd7f35e8eea35076ef7c9fca9f927a7e246 # Parent a3642e761a58c2928d5bf888fcf5df682fdffecb fix diff -r a3642e761a58 -r abe6dcd7f35e CodeAnalysis/ParseOrthancSDK.py --- a/CodeAnalysis/ParseOrthancSDK.py Thu Apr 30 06:58:12 2020 +0200 +++ b/CodeAnalysis/ParseOrthancSDK.py Tue May 12 12:20:39 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)