token : minor refactoring to TOKEN::insertToken. Give the linenr and fileIndex the same values as this token. It's better than nothing
This commit is contained in:
parent
40f3ef61c9
commit
e853f28912
|
@ -366,10 +366,12 @@ void TOKEN::previous( TOKEN *previous )
|
|||
_previous = previous;
|
||||
}
|
||||
|
||||
void TOKEN::insertToken( const char *str )
|
||||
void TOKEN::insertToken( const char str[] )
|
||||
{
|
||||
TOKEN *newToken = new TOKEN;
|
||||
newToken->setstr( str );
|
||||
newToken->_linenr = _linenr;
|
||||
newToken->_fileIndex = _fileIndex;
|
||||
if( this->next() )
|
||||
{
|
||||
newToken->next( this->next() );
|
||||
|
|
Loading…
Reference in New Issue