From 7c884d416dc079f8db79596f4466d7b1277c0b1b Mon Sep 17 00:00:00 2001 From: Oliver Ruebel Date: Sat, 21 Sep 2024 17:43:59 -0700 Subject: [PATCH] Updated DataBlock / DataBlockGeneric to avoid shadowing of constructor args --- src/io/ReadIO.hpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/io/ReadIO.hpp b/src/io/ReadIO.hpp index 8daec26..a7c31cf 100644 --- a/src/io/ReadIO.hpp +++ b/src/io/ReadIO.hpp @@ -61,12 +61,12 @@ class DataBlockGeneric /** * \brief Parameterized constructor */ - DataBlockGeneric(const std::any& data, - const std::vector& shape, - const std::type_index& typeIndex) - : data(data) - , shape(shape) - , typeIndex(typeIndex) + DataBlockGeneric(const std::any& inData, + const std::vector& inShape, + const std::type_index& inTypeIndex) + : data(inData) + , shape(inShape) + , typeIndex(inTypeIndex) { } }; @@ -98,9 +98,10 @@ class DataBlock /** * Constructor */ - DataBlock(const std::vector& data, const std::vector& shape) - : data(data) - , shape(shape) + DataBlock(const std::vector& inData, + const std::vector& inShape) + : data(inData) + , shape(inShape) { }