AP_Math: use NEW_NOTHROW for new(std::nothrow)

This commit is contained in:
Andrew Tridgell committed 2024-06-04 09:20:21 +10:00
1 parent 20070b7e37
commit 72c77b3453
3 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -241,7 +241,7 @@ bool Vector2<T>::circle_segment_intersection(const Vector2<T>& seg_start, const
// -> o o -> | -> |
// FallShort (t1>1,t2>1), Past (t1<0,t2<0), CompletelyInside(t1<0, t2>1)
// intersection = new Vector3(E.x + t1 * d.x, secondPoint.y, E.y + t1 * d.y);
// intersection = NEW_NOTHROW Vector3(E.x + t1 * d.x, secondPoint.y, E.y + t1 * d.y);
// intersection.x = seg_start.x + t1 * seg_end_minus_start.x;
// intersection.y = seg_start.y + t1 * seg_end_minus_start.y;