Measure: apply std::ranges

This commit is contained in:
bofdahof
2025-03-12 17:48:38 +10:00
committed by Chris Hennes
parent ab74f06ef4
commit beb5dd9629

View File

@@ -351,8 +351,7 @@ void ViewProviderMeasureBase::updateData(const App::Property* prop)
// Check if one of the input properties has been changed
auto inputProps = obj->getInputProps();
if (std::find(inputProps.begin(), inputProps.end(), std::string(prop->getName()))
!= inputProps.end()) {
if (std::ranges::find(inputProps, std::string(prop->getName())) != inputProps.end()) {
doUpdate = true;
// Add connections to be notified when the measured objects are changed