[geos-commits] [SCM] GEOS branch master updated. 21ee31f6e0b67d0a70475fd8c50e573e231de08f

git at osgeo.org git at osgeo.org
Fri Oct 4 00:46:45 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  21ee31f6e0b67d0a70475fd8c50e573e231de08f (commit)
      from  65e4d61ababd6c777578d7b94ad4fd7e2badf766 (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 21ee31f6e0b67d0a70475fd8c50e573e231de08f
Author: Sandro Santilli <strk at kbt.io>
Date:   Fri Oct 4 09:21:12 2019 +0200

    Add gcc-suggested override keywords

diff --git a/include/geos/geom/DefaultCoordinateSequenceFactory.h b/include/geos/geom/DefaultCoordinateSequenceFactory.h
index cf96123..c6b40cb 100644
--- a/include/geos/geom/DefaultCoordinateSequenceFactory.h
+++ b/include/geos/geom/DefaultCoordinateSequenceFactory.h
@@ -25,19 +25,19 @@ namespace geom {
 class GEOS_DLL DefaultCoordinateSequenceFactory : public CoordinateSequenceFactory {
 public:
 
-    std::unique_ptr<CoordinateSequence> create() const final {
+    std::unique_ptr<CoordinateSequence> create() const final override {
         return detail::make_unique<CoordinateArraySequence>();
     }
 
-    std::unique_ptr<CoordinateSequence> create(std::vector<Coordinate> *coords, std::size_t dims = 0) const final {
+    std::unique_ptr<CoordinateSequence> create(std::vector<Coordinate> *coords, std::size_t dims = 0) const final override {
         return detail::make_unique<CoordinateArraySequence>(coords, dims);
     }
 
-    std::unique_ptr <CoordinateSequence> create(std::vector <Coordinate> &&coords, std::size_t dims = 0) const final {
+    std::unique_ptr <CoordinateSequence> create(std::vector <Coordinate> &&coords, std::size_t dims = 0) const final override {
         return detail::make_unique<CoordinateArraySequence>(std::move(coords), dims);
     }
 
-    std::unique_ptr <CoordinateSequence> create(std::size_t size, std::size_t dims = 0) const final {
+    std::unique_ptr <CoordinateSequence> create(std::size_t size, std::size_t dims = 0) const final override {
         switch(size) {
             case 5: return detail::make_unique<FixedSizeCoordinateSequence<5>>(dims);
             case 4: return detail::make_unique<FixedSizeCoordinateSequence<4>>(dims);
@@ -49,7 +49,7 @@ public:
         }
     }
 
-    std::unique_ptr <CoordinateSequence> create(const CoordinateSequence &coordSeq) const final {
+    std::unique_ptr <CoordinateSequence> create(const CoordinateSequence &coordSeq) const final override {
         auto cs = create(coordSeq.size(), coordSeq.getDimension());
         for (size_t i = 0; i < cs->size(); i++) {
             cs->setAt(coordSeq[i], i);

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

Summary of changes:
 include/geos/geom/DefaultCoordinateSequenceFactory.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list