Skip to content

Commit

Permalink
Merge pull request #50 from rdkcentral/development/stubgen-fix-def-pa…
Browse files Browse the repository at this point in the history
…rams

Co-authored-by: MFransen69 <[email protected]>
  • Loading branch information
MFransen69 authored Oct 25, 2023
2 parents 91eaf16 + 2959562 commit 2a3a1d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ProxyStubGenerator/CppParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,8 @@ def __repr__(self):

class Parameter(Variable):
def __init__(self, parent_block, string, value=[], valid_specifiers=[]):
Variable.__init__(self, parent_block, string, value, valid_specifiers)
Variable.__init__(self, parent_block, string, None, valid_specifiers)
self.def_value = Evaluate(value) if value else None
if self.name in parent_block.retval.meta.param:
self.meta.brief = parent_block.retval.meta.param[self.name]

Expand All @@ -1129,7 +1130,7 @@ def __str__(self):
return "%s %s" % (self.Proto(), self.name)

def __repr__(self):
value = ValueStr(self.value) if self.value else None
value = ValueStr(self.def_value) if self.def_value else None
return "param %s '%s'%s" % (TypeStr(self.type), str(self.name), (" = " + value) if value else "")


Expand Down

0 comments on commit 2a3a1d5

Please sign in to comment.