From 56ea633edaffd10d547cd88547b3ef7b233cb685 Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Fri, 24 Nov 2017 11:00:50 +0100 Subject: [PATCH] [MeL] Use int for component counting. --- MeshLib/PropertyVector.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MeshLib/PropertyVector.h b/MeshLib/PropertyVector.h index 12ca85b9f92..dd9b9e42af0 100644 --- a/MeshLib/PropertyVector.h +++ b/MeshLib/PropertyVector.h @@ -66,7 +66,7 @@ public: } //! Returns the value for the given component stored in the given tuple. - PROP_VAL_TYPE& getComponent(std::size_t tuple_index, std::size_t component) + PROP_VAL_TYPE& getComponent(std::size_t tuple_index, int component) { assert(component < _n_components); assert(tuple_index < getNumberOfTuples()); @@ -76,7 +76,7 @@ public: //! Returns the value for the given component stored in the given tuple. PROP_VAL_TYPE const& getComponent(std::size_t tuple_index, - std::size_t component) const + int component) const { assert(component < _n_components); assert(tuple_index < getNumberOfTuples()); @@ -215,7 +215,7 @@ public: } //! Returns the value for the given component stored in the given tuple. - T const& getComponent(std::size_t tuple_index, std::size_t component) const + T const& getComponent(std::size_t tuple_index, int component) const { assert(component < _n_components); assert(tuple_index < getNumberOfTuples()); -- GitLab