DoStini / FEUP-AEDA-proj

MIT License
0 stars 0 forks source link

change static lastID to start at 1 so that it is possible to use the value 0 for null #21

Closed Homailot closed 4 years ago

Homailot commented 4 years ago

https://github.com/DoStini/FEUP-AEDA-proj/blob/74ec0a8baccaf9c0f7fe56eaa03882759c02243a/src/Streams/LiveStream.cpp#L10

DoStini commented 4 years ago

That's just an initializer. The real value is initialized on streamZ after loading streams from file

DoStini commented 4 years ago

And the value is supposed to start at 0 because we do streamId = ++lastId;