summaryrefslogtreecommitdiffstats
path: root/src/display/curve.h
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2017-10-01 15:49:26 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2017-10-01 15:49:26 +0000
commite0957537cd0938313803c290a2f3922a3889e6f1 (patch)
tree7f158d00a7655ee91ac094f676f6b3bd624a78b7 /src/display/curve.h
parentMerge branch 'master' of gitlab.com:inkscape/inkscape (diff)
downloadinkscape-e0957537cd0938313803c290a2f3922a3889e6f1.tar.gz
inkscape-e0957537cd0938313803c290a2f3922a3889e6f1.zip
Removed all GSList occurences in .h files
Diffstat (limited to 'src/display/curve.h')
-rw-r--r--src/display/curve.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/display/curve.h b/src/display/curve.h
index 8375e1105..87b9984a8 100644
--- a/src/display/curve.h
+++ b/src/display/curve.h
@@ -16,8 +16,7 @@
#include <2geom/pathvector.h>
#include <cstddef>
#include <boost/optional.hpp>
-
-extern "C" { typedef struct _GSList GSList; }
+#include <list>
/**
* Wrapper around a Geom::PathVector object.
@@ -27,6 +26,7 @@ public:
/* Constructors */
explicit SPCurve();
explicit SPCurve(Geom::PathVector const& pathv);
+ explicit SPCurve(std::list<SPCurve *> const& pathv);
static SPCurve * new_from_rect(Geom::Rect const &rect, bool all_four_sides = false);
virtual ~SPCurve();
@@ -78,8 +78,8 @@ public:
SPCurve * append_continuous(SPCurve const *c1, double tolerance);
SPCurve * create_reverse() const;
- GSList * split() const;
- static SPCurve * concat(GSList const *list);
+ std::list<SPCurve *> split() const;
+ static SPCurve * concat(std::list<SPCurve *> l);
protected:
size_t _refcount;