diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2017-10-01 15:49:26 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2017-10-01 15:49:26 +0000 |
| commit | e0957537cd0938313803c290a2f3922a3889e6f1 (patch) | |
| tree | 7f158d00a7655ee91ac094f676f6b3bd624a78b7 /src/display/curve.h | |
| parent | Merge branch 'master' of gitlab.com:inkscape/inkscape (diff) | |
| download | inkscape-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.h | 8 |
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; |
