X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f803b25b44072e1dc84edc27e3cdae9e34c26edf..b9efe021b554fa3967d1442cf758435c5cd5ae8f:/src/common/hash.cpp diff --git a/src/common/hash.cpp b/src/common/hash.cpp index ed736b1c5b..7f313cd56f 100644 --- a/src/common/hash.cpp +++ b/src/common/hash.cpp @@ -288,7 +288,7 @@ void wxStringHashTable::Put(long key, const wxString& value) wxString wxStringHashTable::Get(long key, bool *wasFound) const { - wxCHECK_MSG( m_hashSize, _T(""), _T("must call Create() first") ); + wxCHECK_MSG( m_hashSize, wxEmptyString, _T("must call Create() first") ); size_t slot = (size_t)abs((int)(key % (long)m_hashSize)); @@ -311,7 +311,7 @@ wxString wxStringHashTable::Get(long key, bool *wasFound) const if ( wasFound ) *wasFound = false; - return _T(""); + return wxEmptyString; } bool wxStringHashTable::Delete(long key) const @@ -1018,9 +1018,12 @@ long wxHashTableBase::MakeKey( const wxChar *str ) return int_key; } -// +// ---------------------------------------------------------------------------- +// wxHashTable +// ---------------------------------------------------------------------------- wxHashTable::wxHashTable( const wxHashTable& table ) + : wxHashTableBase() { DoCopy( table ); }