clang-tidy: fix `readability-container-data-pointer` lints

stage/master/nightly/2023/08/01^2
Ben Boeckel 2023-07-27 09:35:27 -04:00
parent d68fa82d8d
commit 7e3b9af191
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ bool read(cmsys::ifstream& fin, std::vector<T>& v)
return true;
}
return static_cast<bool>(
fin.read(reinterpret_cast<char*>(&v[0]), sizeof(T) * v.size()));
fin.read(reinterpret_cast<char*>(v.data()), sizeof(T) * v.size()));
}
}