Skip to content

Commit

Permalink
Update library calls to std:: namespace per SAM issue 1224
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanzou committed Jul 29, 2024
1 parent 4c32471 commit 0fe6465
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/clipper/clipper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/plot/pltext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0fe6465

Please sign in to comment.