Remove a more cppcheck warnings in vhdlpp.

This patch removes a few more cppcheck warnings in the vhdlpp directory.
This commit is contained in:
Cary R 2011-10-12 17:34:09 -07:00 committed by Stephen Williams
parent 8f17e79b7e
commit 209a78a439
2 changed files with 4 additions and 4 deletions

View File

@ -278,7 +278,7 @@ static bool is_based_correct(char* text)
if(base == 0)
return 0;
}
bool point = 0;
bool point = false;
set<char> allowed_chars;
unsigned c;
@ -299,12 +299,12 @@ static bool is_based_correct(char* text)
if(*ptr == '.')
{
//we found a dot and another one was already found
if(point == 1)
if(point)
return 0;
else
{
//notice the fact of finding a point and continue, without increasing the length
point = 1;
point = true;
continue;
}
}

View File

@ -118,7 +118,7 @@ class Scope : public ScopeBase {
class ActiveScope : public ScopeBase {
public:
ActiveScope() { }
ActiveScope() : context_entity_(0) { }
ActiveScope(ActiveScope*par) : ScopeBase(*par), context_entity_(0) { }
~ActiveScope() { }