[geos-commits] [SCM] GEOS branch 3.8 updated. 10a38df5aa2f890df729a3c7d405efa48dca333f

git at osgeo.org git at osgeo.org
Thu Jun 24 15:31:37 PDT 2021


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, 3.8 has been updated
       via  10a38df5aa2f890df729a3c7d405efa48dca333f (commit)
       via  4b0803b811d9a1f2ab8d58101a2b0b4f05645dc4 (commit)
      from  81329ab2c8da8b5b980b4a947ff102b660b29f0f (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 10a38df5aa2f890df729a3c7d405efa48dca333f
Merge: 81329ab 4b0803b
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Thu Jun 24 15:31:29 2021 -0700

    Merge branch 'averello-bufferop-result-geometry-documentation' into 3.8


commit 4b0803b811d9a1f2ab8d58101a2b0b4f05645dc4
Author: Georges Boumis <georges.boumis at parrot.com>
Date:   Wed Apr 28 17:10:52 2021 +0300

    document ownership semantics BufferOp::getResultGeometry
    
    When instance variable resultGeometry is computed by a call to
    getResultGeometry() it is never freed by the BufferOf instance.
    It is the responisibilty of the caller to free this object.
    
    This change documents the ownership transfer intent.

diff --git a/include/geos/operation/buffer/BufferOp.h b/include/geos/operation/buffer/BufferOp.h
index b814d81..ca85af3 100644
--- a/include/geos/operation/buffer/BufferOp.h
+++ b/include/geos/operation/buffer/BufferOp.h
@@ -236,7 +236,8 @@ public:
      * distance.
      *
      * @param nDistance the buffer distance
-     * @return the buffer of the input geometry
+     * @return the buffer of the input geometry.
+     *         Ownership of the returned object is transferred to caller.
      */
     geom::Geometry* getResultGeometry(double nDistance);
 

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

Summary of changes:
 include/geos/operation/buffer/BufferOp.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list