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:
Sebastian 2019-06-25 19:16:57 +02:00 committed by GitHub
parent a437a22460
commit d1386112a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -491,11 +491,11 @@ class ValueFlow:
if self.condition:
self.condition = int(self.condition)
if element.get('known'):
valueKind = 'known'
self.valueKind = 'known'
elif element.get('possible'):
valueKind = 'possible'
self.valueKind = 'possible'
if element.get('inconclusive'):
inconclusive = 'known'
self.inconclusive = True
def __init__(self, element):
self.Id = element.get('id')