Index: Put the ID in the base class
The ID was initialised in createIndex, but if it was not called, the ID was not initialised. By transferring the initialisation to the base constructor we ensure that the ID will be initialised. The drawback is that classes that should be virtual now have a constructor.
Showing with 19 additions and 9 deletions