Fix libsupport/KeyMap's KeyAt method

This commit is contained in:
Jaidyn Ann 2021-06-01 21:41:49 -05:00
parent 2143de94c1
commit ad673a63f5

View File

@ -94,7 +94,7 @@ template<class KEY, class TYPE>
inline KEY inline KEY
KeyMap<KEY, TYPE>::KeyAt(uint32 position) const KeyMap<KEY, TYPE>::KeyAt(uint32 position) const
{ {
fIter i = fMap.begin(); fConstIter i = fMap.begin();
std::advance(i, position); std::advance(i, position);
if (i == fMap.end()) if (i == fMap.end())
return NULL; return NULL;