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

This commit is contained in:
Ben Boeckel
2023-07-27 09:35:27 -04:00
parent d68fa82d8d
commit 7e3b9af191
+1 -1
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()));
}
}