diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-07-27 13:35:27 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-07-27 13:35:27 (GMT) |
commit | 7e3b9af191b1ae596b228d8ac3d709eecf8d82d4 (patch) | |
tree | d1007df43c4008866c608fc7cdd46fa793768d99 /Source | |
parent | d68fa82d8d5bb14cb4e40c9b45f7afad408c3eaa (diff) | |
download | CMake-7e3b9af191b1ae596b228d8ac3d709eecf8d82d4.zip CMake-7e3b9af191b1ae596b228d8ac3d709eecf8d82d4.tar.gz CMake-7e3b9af191b1ae596b228d8ac3d709eecf8d82d4.tar.bz2 |
clang-tidy: fix `readability-container-data-pointer` lints
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmMachO.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmMachO.cxx b/Source/cmMachO.cxx index 4fcaedf..91a7b84 100644 --- a/Source/cmMachO.cxx +++ b/Source/cmMachO.cxx @@ -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())); } } |