summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 31c0d56)
raw | patch | inline | side by side (parent: 31c0d56)
author | pjrm <pjrm@users.sourceforge.net> | |
Thu, 11 Oct 2007 13:47:48 +0000 (13:47 +0000) | ||
committer | pjrm <pjrm@users.sourceforge.net> | |
Thu, 11 Oct 2007 13:47:48 +0000 (13:47 +0000) |
src/xml/repr.h | patch | blob | history |
diff --git a/src/xml/repr.h b/src/xml/repr.h
index 23786d3b80076170dcd9a21da3be06ee6efc6eff..497cda119778a5846613cc6ba559fd02435e352d 100644 (file)
--- a/src/xml/repr.h
+++ b/src/xml/repr.h
return const_cast<Inkscape::XML::Node *>(repr->parent());
}
+/// 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 );