queue/IdTable: use C++11 initializer

This commit is contained in:
Max Kellermann 2023-11-26 08:40:55 +01:00
parent 634b38169a
commit 4d23068c5c
1 changed files with 3 additions and 4 deletions

View File

@ -21,14 +21,13 @@ class IdTable {
*/
unsigned initialized = 1;
unsigned next;
unsigned next = 1;
int *const data;
int *const data = new int[size];
public:
IdTable(unsigned _size) noexcept
:size(_size), next(1), data(new int[size]) {
}
:size(_size) {}
~IdTable() noexcept {
delete[] data;