r24687 by jghali - #16605: Compilation error in lib2geom/path.h

scribus-commit scribus-commit at lists.scribus.net
Wed Aug 4 21:18:11 UTC 2021


Author: jghali
Date: Wed Aug  4 21:18:11 2021
New Revision: 24687

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24687
Log:
#16605: Compilation error in lib2geom/path.h

Modified:
    trunk/Scribus/scribus/third_party/lib2geom/path.h

Modified: trunk/Scribus/scribus/third_party/lib2geom/path.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24687&path=/trunk/Scribus/scribus/third_party/lib2geom/path.h
==============================================================================
--- trunk/Scribus/scribus/third_party/lib2geom/path.h	(original)
+++ trunk/Scribus/scribus/third_party/lib2geom/path.h	Wed Aug  4 21:18:11 2021
@@ -251,14 +251,15 @@
 
   D2<SBasis> toSBasis() const {return inner.toSBasis(); }
 
-protected:
-  BezierCurve(Point c[]) {
-    Coord x[order+1], y[order+1];
-    for(unsigned i = 0; i <= order; i++) {
-        x[i] = c[i][X]; y[i] = c[i][Y];
-    }
-    inner = Bezier(x, y);
-  }
+// #16605: does not seem used at triggers build error with clang 12.0.1
+//protected:
+//  BezierCurve(Point c[]) {
+//    Coord x[order+1], y[order+1];
+//    for(unsigned i = 0; i <= order; i++) {
+//        x[i] = c[i][X]; y[i] = c[i][Y];
+//    }
+//    inner = Bezier(x, y);
+//  }
 };
 
 // BezierCurve<0> is meaningless; specialize it out




More information about the scribus-commit mailing list