- wxNode *node = m_headers.Find(header);
-
- if (!node)
- m_headers.Append(header, (wxObject *)(new wxString(h_data)));
- else {
- wxString *str = (wxString *)node->Data();
- (*str) = h_data;
- }
+ wxStringToStringHashMap::iterator it = m_headers.find(header);
+ if (it != m_headers.end())
+ it->second = h_data;
+ else
+ m_headers[header.Upper()] = h_data;