Some cppcheck fixes

This commit is contained in:
Jan Möbius
2023-08-22 15:08:50 +02:00
parent ae14da24d0
commit 1f376e2cea
2 changed files with 3 additions and 6 deletions

View File

@@ -489,15 +489,11 @@ int main(int argc, char* argv[])
std::clog << " Input file: " << ifname << std::endl; std::clog << " Input file: " << ifname << std::endl;
std::clog << " Output file: " << ofname << std::endl; std::clog << " Output file: " << ofname << std::endl;
std::clog << " #collapses: " << opt.n_collapses << std::endl; std::clog << " #collapses: " << opt.n_collapses << std::endl;
}
//----------------------------------------
if (gverbose) //----------------------------------------
{
std::clog << "Begin decimation" << std::endl; std::clog << "Begin decimation" << std::endl;
} }
@@ -512,6 +508,7 @@ int main(int argc, char* argv[])
} }
//---------------------------------------- //----------------------------------------
return 0; return 0;
} }

View File

@@ -286,7 +286,7 @@ class PropertyManager {
Storage::swap(rhs, *this); Storage::swap(rhs, *this);
} }
static bool propertyExists(PolyConnectivity &mesh, const char *propname) { static bool propertyExists(const PolyConnectivity &mesh, const char *propname) {
PROPTYPE dummy; PROPTYPE dummy;
return mesh.get_property_handle(dummy, propname); return mesh.get_property_handle(dummy, propname);
} }