-//A set of hash function so we can map wxWebHistoryItems to WebKitWebHistoryItems
-class SharedPtrHash
-{
-public:
- SharedPtrHash() { }
-
- unsigned long operator()( const wxSharedPtr<wxWebHistoryItem> & item ) const
- {
-
- return wxPointerHash()(item.get());
- }
- SharedPtrHash& operator=(const SharedPtrHash&) { return *this; }
-};
-
-class SharedPtrEqual
-{
-public:
- SharedPtrEqual() { }
- bool operator()( const wxSharedPtr<wxWebHistoryItem> & a,
- const wxSharedPtr<wxWebHistoryItem> & b ) const
- {
- return wxPointerEqual()(a.get(), b.get());
- }
-
- SharedPtrEqual& operator=(const SharedPtrEqual&) { return *this; }
-};
-
-WX_DECLARE_HASH_MAP(wxSharedPtr<wxWebHistoryItem>, WebKitWebHistoryItem*,
- SharedPtrHash, SharedPtrEqual, HistoryItemHash);