mirror of
https://github.com/g4klx/DMRGateway
synced 2025-12-21 21:45:39 +08:00
Use an unordered_map for the AMBE phrases.
This commit is contained in:
@@ -65,7 +65,7 @@ CVoice::~CVoice()
|
||||
for (std::vector<CDMRData*>::iterator it = m_data.begin(); it != m_data.end(); ++it)
|
||||
delete *it;
|
||||
|
||||
for (std::map<std::string, CPositions*>::iterator it = m_positions.begin(); it != m_positions.end(); ++it)
|
||||
for (std::unordered_map<std::string, CPositions*>::iterator it = m_positions.begin(); it != m_positions.end(); ++it)
|
||||
delete it->second;
|
||||
|
||||
m_data.clear();
|
||||
|
||||
4
Voice.h
4
Voice.h
@@ -27,7 +27,7 @@
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <unordered_map>
|
||||
|
||||
enum VOICE_STATUS {
|
||||
VS_NONE,
|
||||
@@ -67,7 +67,7 @@ private:
|
||||
unsigned int m_streamId;
|
||||
unsigned int m_sent;
|
||||
unsigned char* m_ambe;
|
||||
std::map<std::string, CPositions*> m_positions;
|
||||
std::unordered_map<std::string, CPositions*> m_positions;
|
||||
std::vector<CDMRData*> m_data;
|
||||
std::vector<CDMRData*>::const_iterator m_it;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user