X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fc2e1beec2578d76468d6ba096bae037f7701e23..08469b1f18dbf44abd5400ddf83a7c0e1bd65af1:/include/wx/hashmap.h diff --git a/include/wx/hashmap.h b/include/wx/hashmap.h index b2aa1bff1a..b6ff1455e2 100644 --- a/include/wx/hashmap.h +++ b/include/wx/hashmap.h @@ -202,6 +202,7 @@ public: \ { \ public: \ const_iterator() : Iterator() {} \ + const_iterator(iterator i) : Iterator(i) {} \ const_iterator( Node* node, const Self* ht ) \ : Iterator( node, (Self*)ht ) {} \ const_iterator& operator++() { PlusPlus();return *this; } \ @@ -640,7 +641,10 @@ public: \ \ /* count() == 0 | 1 */ \ size_type count( const const_key_type& key ) \ - { return GetNode( key ) ? 1 : 0; } \ + { \ + /* explicit cast needed to suppress CodeWarrior warnings */ \ + return (size_type)(GetNode( key ) ? 1 : 0); \ + } \ } #endif // !wxUSE_STL || !defined(HAVE_STL_HASH_MAP)