diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xml/repr.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/xml/repr.h b/src/xml/repr.h index 23786d3b8..497cda119 100644 --- a/src/xml/repr.h +++ b/src/xml/repr.h @@ -148,11 +148,21 @@ inline Inkscape::XML::Node *sp_repr_parent(Inkscape::XML::Node const *repr) { } /// Returns first child of node, resets iterator. +inline Inkscape::XML::Node const *sp_repr_children(Inkscape::XML::Node const *repr) { + return ( repr ? repr->firstChild() : NULL ); +} + +/// Returns first child of node, resets iterator. inline Inkscape::XML::Node *sp_repr_children(Inkscape::XML::Node *repr) { return ( repr ? repr->firstChild() : NULL ); } /// Returns next child of node or NULL. +inline Inkscape::XML::Node const *sp_repr_next(Inkscape::XML::Node const *repr) { + return ( repr ? repr->next() : NULL ); +} + +/// Returns next child of node or NULL. inline Inkscape::XML::Node *sp_repr_next(Inkscape::XML::Node *repr) { return ( repr ? repr->next() : NULL ); } |
