Skip to content

Commit

Permalink
Fix building Proximity.cpp with Qt6 and gcc 11.2 (#54)
Browse files Browse the repository at this point in the history
* Fix building Proximity.cpp with Qt6 and gcc 11.2

Add <algorithm> header to the Proximity.cpp

* Fix formatting

---------

Co-authored-by: lightsilverberryfox <118631656+lightsilverberryfox@users.noreply.github.com>
  • Loading branch information
Lockywolf and lightsilverberryfox committed Jun 7, 2023
1 parent ed6d1f6 commit a2aef13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/foundation/Proximity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include <QLineF>
#include <QPointF>
#include <algorithm>

Proximity::Proximity(const QPointF& p1, const QPointF& p2) {
const double dx = p1.x() - p2.x();
Expand Down

0 comments on commit a2aef13

Please sign in to comment.