From ec27715cf0c32e390a9068e360ec3c3866ff1303 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 15 Apr 2022 17:29:32 +0100 Subject: Fix shadowing in icemetadata --- slicer/tool/icemetadata.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/slicer/tool/icemetadata.cpp b/slicer/tool/icemetadata.cpp index fee29ae..cecf703 100644 --- a/slicer/tool/icemetadata.cpp +++ b/slicer/tool/icemetadata.cpp @@ -4,10 +4,10 @@ // IWYU pragma: no_include namespace Slicer { - IceMetaData::IceMetaData(Slice::StringList && a) + IceMetaData::IceMetaData(Slice::StringList && as) { - arr.reserve(a.size()); - std::for_each(a.begin(), a.end(), [this](auto && a) { + arr.reserve(as.size()); + std::for_each(as.begin(), as.end(), [this](auto && a) { auto & md = arr.emplace_back(a, std::string_view {}); md.second = std::string_view(md.first).substr(0, md.first.rfind(':')); }); -- cgit v1.2.3