WX_DECLARE_HASH() macro for type safe hashes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-02-25 19:23:11 +00:00
parent 794bcc2dea
commit bcaa23de09
5 changed files with 354 additions and 148 deletions

View File

@@ -172,10 +172,10 @@ void wxListBase::DoCopy(const wxListBase& list)
m_nodeLast = (wxNodeBase *) NULL;
switch (m_keyType) {
case wxKEY_INTEGER:
{
long key;
long key;
for ( wxNodeBase *node = list.GetFirst(); node; node = node->GetNext() )
{
key = node->GetKeyInteger();
@@ -186,7 +186,7 @@ void wxListBase::DoCopy(const wxListBase& list)
case wxKEY_STRING:
{
const wxChar *key;
const wxChar *key;
for ( wxNodeBase *node = list.GetFirst(); node; node = node->GetNext() )
{
key = node->GetKeyString();