diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2015-12-08 21:36:21 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2015-12-08 21:36:21 +0000 |
| commit | 402e0259b8310d25a1f51cc6a4c69f496f73591e (patch) | |
| tree | 9e0947e17ed84f037e20fe3ce733ee09d579e6b7 /src/conn-avoid-ref.h | |
| parent | 0-sized arrays are supposed to be forbidden (diff) | |
| download | inkscape-402e0259b8310d25a1f51cc6a4c69f496f73591e.tar.gz inkscape-402e0259b8310d25a1f51cc6a4c69f496f73591e.zip | |
cppification: GSList replaced by vectors (connectors)
(bzr r14504.1.13)
Diffstat (limited to 'src/conn-avoid-ref.h')
| -rw-r--r-- | src/conn-avoid-ref.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/conn-avoid-ref.h b/src/conn-avoid-ref.h index e9e12118f..2c7da9aae 100644 --- a/src/conn-avoid-ref.h +++ b/src/conn-avoid-ref.h @@ -20,7 +20,6 @@ class SPDesktop; class SPObject; class SPItem; -typedef struct _GSList GSList; namespace Avoid { class ShapeRef; } class SPAvoidRef { @@ -41,8 +40,8 @@ public: // Avoid::runningTo // Avoid::runningFrom // Avoid::runningToAndFrom - GSList *getAttachedShapes(const unsigned int type); - GSList *getAttachedConnectors(const unsigned int type); + std::vector<SPItem *> getAttachedShapes(const unsigned int type); + std::vector<SPItem *> getAttachedConnectors(const unsigned int type); private: SPItem *item; @@ -55,7 +54,7 @@ private: sigc::connection _transformed_connection; }; -extern GSList *get_avoided_items(GSList *list, SPObject *from, +extern std::vector<SPItem *> get_avoided_items(std::vector<SPItem *> &list, SPObject *from, SPDesktop *desktop, bool initialised = true); extern void avoid_item_move(Geom::Affine const *mp, SPItem *moved_item); extern void init_avoided_shape_geometry(SPDesktop *desktop); |
