From 57455ea9ef6ae0da00abac989cdd14c38ed48345 Mon Sep 17 00:00:00 2001 From: "Dmitry Yu. Naumov" <github@naumov.de> Date: Fri, 23 Nov 2018 20:22:01 +0100 Subject: [PATCH] [MeL] Fix Properties::existsPropertyVector docu. --- MeshLib/Properties-impl.h | 4 ++-- MeshLib/Properties.h | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/MeshLib/Properties-impl.h b/MeshLib/Properties-impl.h index 8b7669dd7c2..6b105c70367 100644 --- a/MeshLib/Properties-impl.h +++ b/MeshLib/Properties-impl.h @@ -89,7 +89,7 @@ bool Properties::existsPropertyVector(std::string const& name) const template <typename T> bool Properties::existsPropertyVector(std::string const& name, - MeshItemType const item_type, + MeshItemType const mesh_item_type, int const number_of_components) const { auto const it = _properties.find(name); @@ -103,7 +103,7 @@ bool Properties::existsPropertyVector(std::string const& name, { return false; } - if (property->getMeshItemType() != item_type) + if (property->getMeshItemType() != mesh_item_type) { return false; } diff --git a/MeshLib/Properties.h b/MeshLib/Properties.h index 1dcf650bbda..638a4b2b4b6 100644 --- a/MeshLib/Properties.h +++ b/MeshLib/Properties.h @@ -85,12 +85,11 @@ public: template <typename T> bool existsPropertyVector(std::string const& name) const; - /// Checks if a property vector with given type \c T, \c name, \c item_type - /// and \c number_of_components exists. - /// @param name name of the requested property vector + /// Checks if a property vector with given type \c T, \c name, \c + /// mesh_item_type, and \c number_of_components exists. template <typename T> - bool existsPropertyVector(std::string const& name, - MeshItemType const item_type, + bool existsPropertyVector(std::string const& property_name, + MeshItemType const mesh_item_type, int const number_of_components) const; /// Returns a property vector with given \c name or aborts calling OGS_FATAL -- GitLab