From 7e3b9af191b1ae596b228d8ac3d709eecf8d82d4 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 27 Jul 2023 09:35:27 -0400 Subject: clang-tidy: fix `readability-container-data-pointer` lints --- Source/cmMachO.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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& v) return true; } return static_cast( - fin.read(reinterpret_cast(&v[0]), sizeof(T) * v.size())); + fin.read(reinterpret_cast(v.data()), sizeof(T) * v.size())); } } -- cgit v0.12