[geos-commits] [SCM] GEOS branch master updated. 13b65cf4037f4685b903a95a5bc67813ccc97a80

git at osgeo.org git at osgeo.org
Tue Sep 17 23:37:05 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  13b65cf4037f4685b903a95a5bc67813ccc97a80 (commit)
      from  d07995369d961ff0ef3bad854dc3bdc05a904e9d (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 13b65cf4037f4685b903a95a5bc67813ccc97a80
Author: Sandro Santilli <strk at kbt.io>
Date:   Wed Sep 18 08:36:52 2019 +0200

    Add GCC-suggested "override" directives in new class

diff --git a/include/geos/geom/FixedSizeCoordinateSequence.h b/include/geos/geom/FixedSizeCoordinateSequence.h
index 07612ea..2bdcbb2 100644
--- a/include/geos/geom/FixedSizeCoordinateSequence.h
+++ b/include/geos/geom/FixedSizeCoordinateSequence.h
@@ -34,33 +34,33 @@ namespace geom {
     public:
         explicit FixedSizeCoordinateSequence(size_t dimension_in = 0) : dimension(dimension_in) {}
 
-        std::unique_ptr<CoordinateSequence> clone() const final {
+        std::unique_ptr<CoordinateSequence> clone() const final override {
             auto seq = detail::make_unique<FixedSizeCoordinateSequence<N>>();
             seq->m_data = m_data;
             return std::unique_ptr<CoordinateSequence>(seq.release());
         }
 
-        const Coordinate& getAt(size_t i) const final {
+        const Coordinate& getAt(size_t i) const final override {
             return m_data[i];
         }
 
-        void getAt(size_t i, Coordinate& c) const final {
+        void getAt(size_t i, Coordinate& c) const final override {
             c = m_data[i];
         }
 
-        size_t getSize() const final {
+        size_t getSize() const final override {
             return N;
         }
 
-        bool isEmpty() const final {
+        bool isEmpty() const final override {
             return N == 0;
         }
 
-        void setAt(const Coordinate & c, size_t pos) final {
+        void setAt(const Coordinate & c, size_t pos) final override {
             m_data[pos] = c;
         }
 
-        void setOrdinate(size_t index, size_t ordinateIndex, double value) final
+        void setOrdinate(size_t index, size_t ordinateIndex, double value) final override
         {
             switch(ordinateIndex) {
                 case CoordinateSequence::X:
@@ -81,7 +81,7 @@ namespace geom {
             }
         }
 
-        size_t getDimension() const final {
+        size_t getDimension() const final override {
             if(dimension != 0) {
                 return dimension;
             }
@@ -100,20 +100,20 @@ namespace geom {
             return dimension;
         }
 
-        void toVector(std::vector<Coordinate> & out) const final {
+        void toVector(std::vector<Coordinate> & out) const final override {
             out.insert(out.end(), m_data.begin(), m_data.end());
         }
 
-        void setPoints(const std::vector<Coordinate> & v) final {
+        void setPoints(const std::vector<Coordinate> & v) final override {
             std::copy(v.begin(), v.end(), m_data.begin());
         }
 
-        void apply_ro(CoordinateFilter* filter) const final {
+        void apply_ro(CoordinateFilter* filter) const final override {
             std::for_each(m_data.begin(), m_data.end(),
                     [&filter](const Coordinate & c) { filter->filter_ro(&c); });
         }
 
-        void apply_rw(const CoordinateFilter* filter) final {
+        void apply_rw(const CoordinateFilter* filter) final override {
             std::for_each(m_data.begin(), m_data.end(),
                     [&filter](Coordinate &c) { filter->filter_rw(&c); });
             dimension = 0; // re-check (see http://trac.osgeo.org/geos/ticket/435)

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

Summary of changes:
 include/geos/geom/FixedSizeCoordinateSequence.h | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list