Refactoring: Constructor of TOKEN changed to use initialization list

instead of assignment.
This commit is contained in:
Reijo Tomperi 2009-01-02 18:36:03 +00:00
parent 80e35e7332
commit 8f55e38ea6
1 changed files with 11 additions and 11 deletions

View File

@ -26,18 +26,18 @@
#include <ctype.h> // isalpha, isdigit #include <ctype.h> // isalpha, isdigit
#endif #endif
TOKEN::TOKEN() TOKEN::TOKEN() :
_str(""),
_cstr(0),
_isName(false),
_isNumber(false),
_isBoolean(false),
_varId(0),
_next(0),
_previous(0),
_fileIndex(0),
_linenr(0)
{ {
_fileIndex = 0;
_cstr = 0;
_str = "";
_linenr = 0;
_next = 0;
_previous = 0;
_varId = 0;
_isName = false;
_isNumber = false;
_isBoolean = false;
} }
TOKEN::~TOKEN() TOKEN::~TOKEN()