modernize C++: use transparent functors

This commit is contained in:
wmayer
2023-08-07 13:31:19 +02:00
committed by wwmayer
parent 31ed14db83
commit b6f331f4fa
7 changed files with 13 additions and 11 deletions

View File

@@ -50,7 +50,8 @@
#include "Utils.h"
#include "ViewProviderSketch.h"
// Hint: this is to prevent to re-format big parts of the file. Remove it later again.
// clang-format off
using namespace std;
using namespace SketcherGui;
using namespace Sketcher;
@@ -806,7 +807,7 @@ void CmdSketcherRestoreInternalAlignmentGeometry::activated(int iMsg)
// Handle highest GeoIds first to minimize GeoIds changing
// TODO: this might not completely resolve GeoIds changing
std::sort(SubGeoIds.begin(), SubGeoIds.end(), std::greater<int>());
std::sort(SubGeoIds.begin(), SubGeoIds.end(), std::greater<>());
// Keep unique
SubGeoIds.erase(std::unique(SubGeoIds.begin(), SubGeoIds.end()), SubGeoIds.end());
@@ -2277,3 +2278,4 @@ void CreateSketcherCommandsConstraintAccel()
rcCmdMgr.addCommand(new CmdSketcherDeleteAllConstraints());
rcCmdMgr.addCommand(new CmdSketcherRemoveAxesAlignment());
}
// clang-format on