CAM: use contains() instead of count() where possible

This commit is contained in:
Benjamin Nauck
2025-03-12 15:58:52 +01:00
parent a882289995
commit dd2172e463
2 changed files with 2 additions and 2 deletions

View File

@@ -281,7 +281,7 @@ PyObject* CommandPy::getCustomAttributes(const char* attr) const
if (satt.length() == 1) {
if (isalpha(satt[0])) {
boost::to_upper(satt);
if (getCommandPtr()->Parameters.count(satt)) {
if (getCommandPtr()->Parameters.contains(satt)) {
return PyFloat_FromDouble(getCommandPtr()->Parameters[satt]);
}
Py_INCREF(Py_None);