`unsigned int` -> `std::size_t`
4 -> `names.size()` (no magic constant!)
`arrayId++` -> `++arrayId`