[geos-commits] [SCM] GEOS branch master updated. e5655619f9164c7e914cd66fda801c64b108425d

git at osgeo.org git at osgeo.org
Fri Dec 6 09:53:30 PST 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  e5655619f9164c7e914cd66fda801c64b108425d (commit)
      from  667f220f02cdecfafda46a0ba315fe542590d527 (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 e5655619f9164c7e914cd66fda801c64b108425d
Author: Daniel Baston <dbaston at gmail.com>
Date:   Fri Dec 6 11:57:17 2019 -0500

    Pull vector declaration out of loop

diff --git a/src/noding/MCIndexSegmentSetMutualIntersector.cpp b/src/noding/MCIndexSegmentSetMutualIntersector.cpp
index e06abf1..e7b31c4 100644
--- a/src/noding/MCIndexSegmentSetMutualIntersector.cpp
+++ b/src/noding/MCIndexSegmentSetMutualIntersector.cpp
@@ -57,8 +57,10 @@ MCIndexSegmentSetMutualIntersector::intersectChains()
 {
     MCIndexSegmentSetMutualIntersector::SegmentOverlapAction overlapAction(*segInt);
 
+    std::vector<void*> overlapChains;
     for(const auto& queryChain : monoChains) {
-        std::vector<void*> overlapChains;
+        overlapChains.clear();
+
         index->query(&(queryChain->getEnvelope()), overlapChains);
 
         for(std::size_t j = 0, nj = overlapChains.size(); j < nj; j++) {

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

Summary of changes:
 src/noding/MCIndexSegmentSetMutualIntersector.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list