Measure: apply std::ranges
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user