[geos-commits] [SCM] GEOS branch master updated. 5de2e8b66796c847050cf8ec4bd5c94234df0a86

git at osgeo.org git at osgeo.org
Wed Jun 5 11:04:37 PDT 2019


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, master has been updated
       via  5de2e8b66796c847050cf8ec4bd5c94234df0a86 (commit)
      from  0dc5ed1e087cbfecd73254f603e7ad2151ecddcd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5de2e8b66796c847050cf8ec4bd5c94234df0a86
Author: Daniel Baston <dbaston at gmail.com>
Date:   Wed Jun 5 14:04:00 2019 -0400

    Resolve trivial TODO in LineSegment::reverse

diff --git a/src/geom/LineSegment.cpp b/src/geom/LineSegment.cpp
index 00072ce..fa422ba 100644
--- a/src/geom/LineSegment.cpp
+++ b/src/geom/LineSegment.cpp
@@ -55,10 +55,7 @@ namespace geom { // geos::geom
 void
 LineSegment::reverse()
 {
-    // TODO: use std::swap<>
-    Coordinate temp = p0;
-    p0 = p1;
-    p1 = temp;
+    std::swap(p0, p1);
 }
 
 /*public*/

-----------------------------------------------------------------------

Summary of changes:
 src/geom/LineSegment.cpp | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list