[cppcheck][unitiliazed-variable]

This commit is contained in:
tpaviot
2011-08-08 12:52:26 +02:00
parent 8ce79ec545
commit f727293c92
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -259,7 +259,7 @@ class AndList : public JoinList {
class OrList : public MultList {
public:
OrList() : MultList( OR ), choice(-1), choiceCount(0) {}
OrList() : MultList( OR ), choice(-1), choice1(-2), choiceCount(0) {}
~OrList() {}
int hit( char * );
MatchType matchORs( EntNode * );
@@ -268,7 +268,7 @@ class OrList : public MultList {
int acceptChoice( EntNode * );
int acceptNextChoice( EntNode *ents )
{ choice++; return ( acceptChoice( ents ) ); }
void reset() { choice = -1; choiceCount = 0; MultList::reset(); }
void reset() { choice = -1; choice1 = -2; choiceCount = 0; MultList::reset(); }
private:
int choice, choice1, choiceCount;
+2 -2
View File
@@ -266,7 +266,7 @@ class AndList : public JoinList {
class OrList : public MultList {
public:
OrList() : MultList( OR ), choice(-1), choiceCount(0) {}
OrList() : MultList( OR ), choice(-1), choice1(-2), choiceCount(0) {}
~OrList() {}
int hit( const char * );
MatchType matchORs( EntNode * );
@@ -275,7 +275,7 @@ class OrList : public MultList {
int acceptChoice( EntNode * );
int acceptNextChoice( EntNode *ents )
{ choice++; return ( acceptChoice( ents ) ); }
void reset() { choice = -1; choiceCount = 0; MultList::reset(); }
void reset() { choice = -1; choice1 = -2; choiceCount = 0; MultList::reset(); }
private:
int choice, choice1, choiceCount;