]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/treectrl.cpp
New DnD and Clipboard code
[wxWidgets.git] / src / generic / treectrl.cpp
index 5bcf080dc81ccb2e4bef79f14b4248aceb7f40d4..90284a5ee379cf81e76e6bb882df880e5e00dcaa 100644 (file)
@@ -579,7 +579,7 @@ wxTreeItemId wxTreeCtrl::GetNextSibling(const wxTreeItemId& item) const
 
   wxArrayTreeItems& siblings = parent->GetChildren();
   int index = siblings.Index(i);
-  wxASSERT( index != NOT_FOUND ); // I'm not a child of my parent?
+  wxASSERT( index != wxNOT_FOUND ); // I'm not a child of my parent?
 
   size_t n = (size_t)(index + 1);
   return n == siblings.Count() ? wxTreeItemId() : wxTreeItemId(siblings[n]);
@@ -599,7 +599,7 @@ wxTreeItemId wxTreeCtrl::GetPrevSibling(const wxTreeItemId& item) const
 
   wxArrayTreeItems& siblings = parent->GetChildren();
   int index = siblings.Index(i);
-  wxASSERT( index != NOT_FOUND ); // I'm not a child of my parent?
+  wxASSERT( index != wxNOT_FOUND ); // I'm not a child of my parent?
 
   return index == 0 ? wxTreeItemId()
                     : wxTreeItemId(siblings[(size_t)(index - 1)]);
@@ -707,7 +707,7 @@ wxTreeItemId wxTreeCtrl::InsertItem(const wxTreeItemId& parentId,
   }
 
   int index = parent->GetChildren().Index(idPrevious.m_pItem);
-  wxASSERT_MSG( index != NOT_FOUND,
+  wxASSERT_MSG( index != wxNOT_FOUND,
                 "previous item in wxTreeCtrl::InsertItem() is not a sibling" );
   return DoInsertItem(parentId, (size_t)index, text, image, selImage, data);
 }