From 1f376e2cea64613190d698eb1092532bb419c2dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Tue, 22 Aug 2023 15:08:50 +0200 Subject: [PATCH] Some cppcheck fixes --- src/OpenMesh/Apps/Decimating/decimater.cc | 7 ++----- src/OpenMesh/Core/Utils/PropertyManager.hh | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/OpenMesh/Apps/Decimating/decimater.cc b/src/OpenMesh/Apps/Decimating/decimater.cc index 712d6b28..9d60c5be 100644 --- a/src/OpenMesh/Apps/Decimating/decimater.cc +++ b/src/OpenMesh/Apps/Decimating/decimater.cc @@ -489,15 +489,11 @@ int main(int argc, char* argv[]) std::clog << " Input file: " << ifname << std::endl; std::clog << " Output file: " << ofname << std::endl; std::clog << " #collapses: " << opt.n_collapses << std::endl; - } - //---------------------------------------- + //---------------------------------------- - - if (gverbose) - { std::clog << "Begin decimation" << std::endl; } @@ -512,6 +508,7 @@ int main(int argc, char* argv[]) } //---------------------------------------- + return 0; } diff --git a/src/OpenMesh/Core/Utils/PropertyManager.hh b/src/OpenMesh/Core/Utils/PropertyManager.hh index 93dac7b3..86d5fe3a 100644 --- a/src/OpenMesh/Core/Utils/PropertyManager.hh +++ b/src/OpenMesh/Core/Utils/PropertyManager.hh @@ -286,7 +286,7 @@ class PropertyManager { Storage::swap(rhs, *this); } - static bool propertyExists(PolyConnectivity &mesh, const char *propname) { + static bool propertyExists(const PolyConnectivity &mesh, const char *propname) { PROPTYPE dummy; return mesh.get_property_handle(dummy, propname); }