addons/cppcheckdata.py: Fix missing self, and wrong assignment. (#1919)
I am not sure but it looks like "self." is missing here. And the attribute "inconclusive" is initialized as a "bool", so i guess "True" should be assigned here?
This commit is contained in:
parent
a437a22460
commit
d1386112a9
|
@ -491,11 +491,11 @@ class ValueFlow:
|
||||||
if self.condition:
|
if self.condition:
|
||||||
self.condition = int(self.condition)
|
self.condition = int(self.condition)
|
||||||
if element.get('known'):
|
if element.get('known'):
|
||||||
valueKind = 'known'
|
self.valueKind = 'known'
|
||||||
elif element.get('possible'):
|
elif element.get('possible'):
|
||||||
valueKind = 'possible'
|
self.valueKind = 'possible'
|
||||||
if element.get('inconclusive'):
|
if element.get('inconclusive'):
|
||||||
inconclusive = 'known'
|
self.inconclusive = True
|
||||||
|
|
||||||
def __init__(self, element):
|
def __init__(self, element):
|
||||||
self.Id = element.get('id')
|
self.Id = element.get('id')
|
||||||
|
|
Loading…
Reference in New Issue