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

git at osgeo.org git at osgeo.org
Mon Dec 2 09:24:10 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  cc774dbbd130abf278b94f6887b046b82e23b8c1 (commit)
      from  dc3522bd824134812f76e5332ea6ba02eeae587a (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 cc774dbbd130abf278b94f6887b046b82e23b8c1
Author: Dan Baston <dbaston at gmail.com>
Date:   Mon Dec 2 12:23:13 2019 -0500

    Fix MSVC build

diff --git a/include/geos/geom/GeometryFactory.h b/include/geos/geom/GeometryFactory.h
index c961745..4910e2a 100644
--- a/include/geos/geom/GeometryFactory.h
+++ b/include/geos/geom/GeometryFactory.h
@@ -189,7 +189,7 @@ public:
     std::unique_ptr<GeometryCollection> createGeometryCollection(
             std::vector<std::unique_ptr<T>> && newGeoms) const {
         // Can't use make_unique because constructor is protected
-        return std::unique_ptr<GeometryCollection>(new GeometryCollection(std::move(newGeoms), *this));
+        return std::unique_ptr<GeometryCollection>(new GeometryCollection(Geometry::toGeometryArray(std::move(newGeoms)), *this));
     /// Constructs a GeometryCollection with a deep-copy of args


Summary of changes:
 include/geos/geom/GeometryFactory.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


More information about the geos-commits mailing list