From 7057f62a3784cd078455404e57f917607a4b87f2 Mon Sep 17 00:00:00 2001
From: Mattia Barbon <mbarbon@cpan.org>
Date: Sun, 2 Nov 2003 15:32:24 +0000
Subject: [PATCH]   Updated wxHashTable::Next documentation to use
 wxHashTable::Node* for the return type (which currently is just a typedef for
 wxNode*).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 docs/latex/wx/hash.tex | 9 +++++----
 include/wx/hash.h      | 4 +++-
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/docs/latex/wx/hash.tex b/docs/latex/wx/hash.tex
index afd8c0a635..7c60031e91 100644
--- a/docs/latex/wx/hash.tex
+++ b/docs/latex/wx/hash.tex
@@ -112,13 +112,14 @@ explicitly (for instance when combining two data values to form a key).
 
 \membersection{wxHashTable::Next}
 
-\func{wxNode *}{Next}{\void}
+\func{wxHashTable::Node *}{Next}{\void}
 
 If the application wishes to iterate through all the data in the hash
 table, it can call {\it BeginFind} and then loop on {\it Next}. This function
-returns a {\bf wxNode} pointer (or NULL if there are no more nodes).  See the
-description for \helpref{wxNode}{wxnode}. The user will probably only wish to use the
-{\bf wxNode::Data} function to retrieve the data; the node may also be deleted.
+returns a {\bf wxHashTable::Node} pointer (or NULL if there are no more nodes).
+The return value is functionally equivalent to \textbf{wxNode} but might not be
+implemented as a \textbf{wxNode}. The user will probably only wish to use the
+\textbf{GetData} method to retrieve the data; the node may also be deleted.
 
 \membersection{wxHashTable::Put}
 
diff --git a/include/wx/hash.h b/include/wx/hash.h
index 3720dd0c1f..4fb1436c21 100644
--- a/include/wx/hash.h
+++ b/include/wx/hash.h
@@ -447,6 +447,9 @@ private:
 class WXDLLIMPEXP_BASE wxHashTable : public wxObject
 {
 public:
+    typedef wxNode Node;
+    typedef wxNode* compatibility_iterator;
+
     int n;
     int current_position;
     wxNode *current_node;
@@ -523,7 +526,6 @@ public:
     // Returns number of nodes
     size_t GetCount() const { return m_count; }
 
-    typedef wxNode* compatibility_iterator;
 private:
     size_t m_count;             // number of elements in the hashtable
     bool m_deleteContents;
-- 
2.50.0

