Remove a more cppcheck warnings in vhdlpp.
This patch removes a few more cppcheck warnings in the vhdlpp directory.
This commit is contained in:
parent
8f17e79b7e
commit
209a78a439
|
|
@ -278,7 +278,7 @@ static bool is_based_correct(char* text)
|
||||||
if(base == 0)
|
if(base == 0)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
bool point = 0;
|
bool point = false;
|
||||||
set<char> allowed_chars;
|
set<char> allowed_chars;
|
||||||
|
|
||||||
unsigned c;
|
unsigned c;
|
||||||
|
|
@ -299,12 +299,12 @@ static bool is_based_correct(char* text)
|
||||||
if(*ptr == '.')
|
if(*ptr == '.')
|
||||||
{
|
{
|
||||||
//we found a dot and another one was already found
|
//we found a dot and another one was already found
|
||||||
if(point == 1)
|
if(point)
|
||||||
return 0;
|
return 0;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//notice the fact of finding a point and continue, without increasing the length
|
//notice the fact of finding a point and continue, without increasing the length
|
||||||
point = 1;
|
point = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,7 @@ class Scope : public ScopeBase {
|
||||||
class ActiveScope : public ScopeBase {
|
class ActiveScope : public ScopeBase {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ActiveScope() { }
|
ActiveScope() : context_entity_(0) { }
|
||||||
ActiveScope(ActiveScope*par) : ScopeBase(*par), context_entity_(0) { }
|
ActiveScope(ActiveScope*par) : ScopeBase(*par), context_entity_(0) { }
|
||||||
|
|
||||||
~ActiveScope() { }
|
~ActiveScope() { }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue