summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-04-15 17:29:32 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-04-15 17:29:32 +0100
commitec27715cf0c32e390a9068e360ec3c3866ff1303 (patch)
tree586310fef01fa43b1f6846874875c3c705f46a8f
parentFix shadowing in metadata and simplify (diff)
downloadslicer-ec27715cf0c32e390a9068e360ec3c3866ff1303.tar.bz2
slicer-ec27715cf0c32e390a9068e360ec3c3866ff1303.tar.xz
slicer-ec27715cf0c32e390a9068e360ec3c3866ff1303.zip
Fix shadowing in icemetadata
-rw-r--r--slicer/tool/icemetadata.cpp6
1 files 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 <list>
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(':'));
});