msg_blk_data_map_t mMemberBlocks must be ordered. Todo: convert to vector, as insertion order should be good enough with minor changes.

This commit is contained in:
Shyotl
2019-07-10 01:37:00 -05:00
parent ed9307097b
commit 1234cf42e9

View File

@@ -32,7 +32,7 @@
#include "llstl.h"
#include "llindexedvector.h"
#include <unordered_map>
#include <map>
extern U32 sMsgDataAllocSize;
extern U32 sMsgdataAllocCount;
@@ -134,7 +134,7 @@ public:
void addDataFast(char *blockname, char *varname, const void *data, S32 size, EMsgVariableType type, S32 data_size = -1);
public:
typedef std::unordered_map<char*, LLMsgBlkData*> msg_blk_data_map_t;
typedef std::map<char*, LLMsgBlkData*> msg_blk_data_map_t;
msg_blk_data_map_t mMemberBlocks;
char *mName;
S32 mTotalSize;