diff --git a/src/boost-hash.h b/src/boost-hash.h index 0bfa56d..3ce746a 100644 --- a/src/boost-hash.h +++ b/src/boost-hash.h @@ -53,7 +53,7 @@ public: p.insert(PairType(key, value)); } - inline void erase(const K &key) + inline void remove(const K &key) { p.erase(key); } @@ -116,6 +116,11 @@ public: p.insert(key); } + inline void remove(const K &key) + { + p.erase(key); + } + inline const_iterator cbegin() const { return p.cbegin(); diff --git a/src/soundemitter.cpp b/src/soundemitter.cpp index 65fe5e6..965556c 100644 --- a/src/soundemitter.cpp +++ b/src/soundemitter.cpp @@ -233,7 +233,7 @@ SoundBuffer *SoundEmitter::allocateBuffer(const std::string &filename) while (wouldBeBytes > SE_CACHE_MEM && !buffers.isEmpty()) { SoundBuffer *last = buffers.tail(); - bufferHash.erase(last->key); + bufferHash.remove(last->key); buffers.remove(last->link); wouldBeBytes -= last->bytes;