Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
768 B

  1. /*++
  2. Copyright (C) 1996-2001 Microsoft Corporation
  3. Module Name:
  4. ProvTree.cpp
  5. Abstract:
  6. History:
  7. --*/
  8. #include <precomp.h>
  9. #include <typeinfo.h>
  10. #include <HelperFuncs.h>
  11. #include <Logging.h>
  12. #include "ProvTree.h"
  13. WmiTreeNode *WmiTreeNode :: Copy ()
  14. {
  15. TypeId_TreeNode t_Type = m_Type ;
  16. void *t_DataCopy = m_Data ;
  17. WmiTreeNode *t_Parent = m_Parent ;
  18. WmiTreeNode *t_LeftCopy = m_Left ? m_Left->Copy () : NULL ;
  19. WmiTreeNode *t_RightCopy = m_Right ? m_Right->Copy () : NULL ;
  20. WmiTreeNode *t_Node = new WmiTreeNode ( t_Type , t_DataCopy , t_LeftCopy , t_RightCopy , t_Parent ) ;
  21. return t_Node ;
  22. } ;
  23. WmiTreeNode *WmiTreeNode :: CopyNode ()
  24. {
  25. WmiTreeNode *t_Node = new WmiTreeNode ( this ) ;
  26. return t_Node ;
  27. } ;