changeset 32:30161a429a91

merge
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 12 May 2020 12:20:50 +0200
parents abe6dcd7f35e (diff) 4a0932c22ddb (current diff)
children ce5b6116e6cd
files
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)