]> git.mxchange.org Git - simgear.git/commitdiff
math: 'void getMaxSubdiv' does not make any sense
authorRebecca N. Palmer <rebecca_palmer@zoho.com>
Sat, 6 Feb 2016 21:16:27 +0000 (21:16 +0000)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Sat, 6 Feb 2016 21:16:27 +0000 (21:16 +0000)
Fixes build failure with GCC 6: https://bugs.debian.org/812014
(getMaxSubdiv is currently unused)

simgear/math/beziercurve.hxx

index b565832b74f2f56e38d8b7bbb2fb12729b940001..56545342cc3040104094de6803d63c6d265ba8f9 100644 (file)
@@ -59,7 +59,7 @@ namespace simgear
     }
 
     void setMaxSubdiv( size_t aMaxSubdiv ) { mMaxSubdiv = aMaxSubdiv; }
-    void getMaxSubdiv() const { return mMaxSubdiv; }
+    size_t getMaxSubdiv() const { return mMaxSubdiv; }
     PointList &pointList() { return mPointList; }
     const PointList &pointList() const { return mPointList; }