mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 21:00:01 -05:00
clang-tidy: fix readability-container-data-pointer lints
This commit is contained in:
+1
-1
@@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user