From edd9e9d9297c2ce629c1c2bed9f3da901658c6a7 Mon Sep 17 00:00:00 2001 From: MenTaLguY Date: Tue, 1 Jul 2008 23:07:59 +0000 Subject: remove additional unnecessary indirection in tree operations (bzr r6109) --- src/xml/simple-node.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/xml/simple-node.h') 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(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; -- cgit v1.2.3