summaryrefslogtreecommitdiffstats
path: root/Source/cmMachO.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-07-27 13:35:27 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-07-27 13:35:27 (GMT)
commit7e3b9af191b1ae596b228d8ac3d709eecf8d82d4 (patch)
treed1007df43c4008866c608fc7cdd46fa793768d99 /Source/cmMachO.cxx
parentd68fa82d8d5bb14cb4e40c9b45f7afad408c3eaa (diff)
downloadCMake-7e3b9af191b1ae596b228d8ac3d709eecf8d82d4.zip
CMake-7e3b9af191b1ae596b228d8ac3d709eecf8d82d4.tar.gz
CMake-7e3b9af191b1ae596b228d8ac3d709eecf8d82d4.tar.bz2
clang-tidy: fix `readability-container-data-pointer` lints
Diffstat (limited to 'Source/cmMachO.cxx')
-rw-r--r--Source/cmMachO.cxx2
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()));
}
}