summaryrefslogtreecommitdiffstats
path: root/src/xml/simple-node.h
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2008-07-01 23:07:59 +0000
committermental <mental@users.sourceforge.net>2008-07-01 23:07:59 +0000
commitedd9e9d9297c2ce629c1c2bed9f3da901658c6a7 (patch)
tree4338c11ef962d94bd4f6351ad6343e1fbf731922 /src/xml/simple-node.h
parentaccess some SimpleNode fields directly (diff)
downloadinkscape-edd9e9d9297c2ce629c1c2bed9f3da901658c6a7.tar.gz
inkscape-edd9e9d9297c2ce629c1c2bed9f3da901658c6a7.zip
remove additional unnecessary indirection in tree operations
(bzr r6109)
Diffstat (limited to 'src/xml/simple-node.h')
-rw-r--r--src/xml/simple-node.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xml/simple-node.h b/src/xml/simple-node.h
index 0dece19b9..1d87c6db1 100644
--- a/src/xml/simple-node.h
+++ b/src/xml/simple-node.h
@@ -121,7 +121,7 @@ protected:
public: // ideally these should be protected somehow...
NodeObserver &_subtreeObservers() { return _subtree_observers; }
void _setParent(Node *parent);
- void _setNext(Node *next) { _next = next; }
+ void _setNext(Node *next) { _next = dynamic_cast<SimpleNode *>(next); }
unsigned _childPosition(Node const &child) const;
unsigned _cachedPosition() const { return _cached_position; }
@@ -132,8 +132,8 @@ public: // ideally these should be protected somehow...
private:
void operator=(Node const &); // no assign
- Node *_parent;
- Node *_next;
+ SimpleNode *_parent;
+ SimpleNode *_next;
Document *_document;
mutable unsigned _cached_position;
@@ -145,8 +145,8 @@ private:
unsigned _child_count;
mutable bool _cached_positions_valid;
- Node *_first_child;
- Node *_last_child;
+ SimpleNode *_first_child;
+ SimpleNode *_last_child;
CompositeNodeObserver _observers;
CompositeNodeObserver _subtree_observers;