logic: Refreshing reloads the source code and resets the Token ids to start from 1

This commit is contained in:
Eberhard Graether
2014-07-26 15:31:55 +02:00
parent 68c6ede244
commit 4bf459fa99
7 changed files with 42 additions and 10 deletions
+5
View File
@@ -3,6 +3,11 @@
#include "data/location/TokenLocation.h"
#include "utility/logging/logging.h"
void Token::resetNextId()
{
s_nextId = 1;
}
Token::Token()
: m_id(s_nextId++)
{