From 7bf1b942248a5b5476ba0780f62f45daeebe84cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Tue, 27 Apr 2021 12:25:24 +0200 Subject: [PATCH] Fixed cppcheck warning --- src/OpenMesh/Core/IO/reader/PLYReader.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/OpenMesh/Core/IO/reader/PLYReader.cc b/src/OpenMesh/Core/IO/reader/PLYReader.cc index db431c14..84d9fd78 100644 --- a/src/OpenMesh/Core/IO/reader/PLYReader.cc +++ b/src/OpenMesh/Core/IO/reader/PLYReader.cc @@ -54,6 +54,7 @@ #include #include #include +#include #ifndef WIN32 #endif @@ -1089,7 +1090,7 @@ std::string get_property_name(std::string _string1, std::string _string2) { //----------------------------------------------------------------------------- -_PLYReader_::ValueType get_property_type(std::string& _string1, std::string& _string2) { +_PLYReader_::ValueType get_property_type(const std::string& _string1, const std::string& _string2) { if (_string1 == "float32" || _string2 == "float32")