refactor: use C++11 default initializers

This commit is contained in:
fanquake 2022-05-11 16:02:15 +01:00
parent d5d40d59f8
commit 7aa40f5563
No known key found for this signature in database
GPG key ID: 2EEB9F5CC09526C1
39 changed files with 57 additions and 88 deletions

View file

@ -30,8 +30,7 @@ static void CCheckQueueSpeedPrevectorJob(benchmark::Bench& bench)
struct PrevectorJob {
prevector<PREVECTOR_SIZE, uint8_t> p;
PrevectorJob(){
}
PrevectorJob() = default;
explicit PrevectorJob(FastRandomContext& insecure_rand){
p.resize(insecure_rand.randrange(PREVECTOR_SIZE*2));
}