Gui: apply std::ranges
This commit is contained in:
@@ -1626,7 +1626,7 @@ PyObject* ApplicationPy::sGetMarkerIndex(PyObject * /*self*/, PyObject *args)
|
||||
//get the marker size
|
||||
auto sizeList = Gui::Inventor::MarkerBitmaps::getSupportedSizes(marker_arg);
|
||||
|
||||
if (std::find(std::begin(sizeList), std::end(sizeList), defSize) == std::end(sizeList)) {
|
||||
if (std::ranges::find(sizeList, defSize) == std::end(sizeList)) {
|
||||
defSize = defaultSize;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user