Browse Source

[2105] Set data_ in the initializer list

Mukund Sivaraman 13 years ago
parent
commit
ce3394fbd4
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/lib/datasrc/memory/domaintree.h

+ 4 - 4
src/lib/datasrc/memory/domaintree.h

@@ -445,9 +445,6 @@ private:
     }
     //@}
 
-    /// \brief Data stored here.
-    T* data_;
-
     /// \brief The subdomain tree.
     ///
     /// This points to the root node of trees of subdomains of this domain.
@@ -467,6 +464,9 @@ private:
         return (down_.get());
     }
 
+    /// \brief Data stored here.
+    T* data_;
+
     /// \brief Internal or user-configurable flags of node's properties.
     ///
     /// See the \c Flags enum for available flags.
@@ -493,10 +493,10 @@ DomainTreeNode<T,DT>::DomainTreeNode(size_t labels_capacity) :
     left_(NULL),
     right_(NULL),
     down_(NULL),
+    data_(NULL),
     flags_(FLAG_RED | FLAG_SUBTREE_ROOT),
     labels_capacity_(labels_capacity)
 {
-    data_ = NULL;
 }
 
 template <typename T, typename DT>