cppcheckdata.py: update ValueFlow handling
This commit is contained in:
parent
7481fbb028
commit
0bdd355fac
|
@ -196,10 +196,14 @@ class ValueFlow:
|
||||||
|
|
||||||
class Value:
|
class Value:
|
||||||
intvalue = None
|
intvalue = None
|
||||||
|
tokvalue = None
|
||||||
condition = None
|
condition = None
|
||||||
|
|
||||||
def __init__(self, element):
|
def __init__(self, element):
|
||||||
self.intvalue = int(element.get('intvalue'))
|
self.intvalue = element.get('intvalue')
|
||||||
|
if self.intvalue:
|
||||||
|
self.intvalue = int(self.intvalue)
|
||||||
|
self.tokvalue = element.get('tokvalue')
|
||||||
self.condition = element.get('condition-line')
|
self.condition = element.get('condition-line')
|
||||||
if self.condition:
|
if self.condition:
|
||||||
self.condition = int(self.condition)
|
self.condition = int(self.condition)
|
||||||
|
|
Loading…
Reference in New Issue