Gui: apply std::ranges
This commit is contained in:
@@ -118,7 +118,7 @@ struct DocumentP
|
||||
std::map<SoSeparator *,ViewProviderDocumentObject*> _CoinMap;
|
||||
std::map<std::string,ViewProvider*> _ViewProviderMapAnnotation;
|
||||
std::list<ViewProviderDocumentObject*> _redoViewProviders;
|
||||
|
||||
|
||||
using Connection = boost::signals2::connection;
|
||||
Connection connectNewObject;
|
||||
Connection connectDelObject;
|
||||
@@ -2483,11 +2483,11 @@ void Document::setActiveWindow(Gui::MDIView* view)
|
||||
std::list<MDIView*> mdis = getMDIViews();
|
||||
|
||||
// this document is not active
|
||||
if (std::find(mdis.begin(), mdis.end(), active) == mdis.end())
|
||||
if (std::ranges::find(mdis, active) == mdis.end())
|
||||
return;
|
||||
|
||||
// the view is not part of the document
|
||||
if (std::find(mdis.begin(), mdis.end(), view) == mdis.end())
|
||||
if (std::ranges::find(mdis, view) == mdis.end())
|
||||
return;
|
||||
|
||||
getMainWindow()->setActiveWindow(view);
|
||||
|
||||
Reference in New Issue
Block a user