From 0fe64657ba9c07dba0e8543d4a1d365b5492bd7c Mon Sep 17 00:00:00 2001 From: Steven Janzou Date: Mon, 29 Jul 2024 03:36:15 -0600 Subject: [PATCH] Update library calls to std:: namespace per SAM issue 1224 --- src/clipper/clipper.cpp | 2 +- src/plot/pltext.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clipper/clipper.cpp b/src/clipper/clipper.cpp index 741aa97c..34e73095 100644 --- a/src/clipper/clipper.cpp +++ b/src/clipper/clipper.cpp @@ -1796,7 +1796,7 @@ namespace ClipperLib { else if (e1->PolyTyp != e2->PolyTyp) { //toggle subj open path OutIdx on/off when Abs(clip.WndCnt) == 1 ... - if ((e1->WindDelta == 0) && abs(e2->WindCnt) == 1 && + if ((e1->WindDelta == 0) && std::abs(e2->WindCnt) == 1 && (m_ClipType != ctUnion || e2->WindCnt2 == 0)) { AddOutPt(e1, Pt); diff --git a/src/plot/pltext.cpp b/src/plot/pltext.cpp index 769e08e7..22818d9a 100644 --- a/src/plot/pltext.cpp +++ b/src/plot/pltext.cpp @@ -890,7 +890,7 @@ wxFreeTypeDraw(wxRealPoint *offset, int ifnt, double points, unsigned int dpi, c } // create image surface of appropriate size - wxSize bounds(std::abs(max.x - min.x), fabs(max.y - min.y)); + wxSize bounds(std::abs(max.x - min.x), std::fabs(max.y - min.y)); wxImage img(bounds, false); // find offset coordinate for top-left placement