Refactoring: Constructor of TOKEN changed to use initialization list
instead of assignment.
This commit is contained in:
parent
80e35e7332
commit
8f55e38ea6
22
token.cpp
22
token.cpp
|
@ -26,18 +26,18 @@
|
|||
#include <ctype.h> // isalpha, isdigit
|
||||
#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()
|
||||
|
|
Loading…
Reference in New Issue