[InvOpts] Inventory Observer unordered opt pass
This commit is contained in:
@@ -30,6 +30,7 @@
|
|||||||
#include "lluuid.h"
|
#include "lluuid.h"
|
||||||
#include "llmd5.h"
|
#include "llmd5.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <unordered_map>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
class LLViewerInventoryCategory;
|
class LLViewerInventoryCategory;
|
||||||
@@ -256,7 +257,7 @@ protected:
|
|||||||
class LLInventoryCategoriesObserver : public LLInventoryObserver
|
class LLInventoryCategoriesObserver : public LLInventoryObserver
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef boost::function<void()> callback_t;
|
typedef std::function<void()> callback_t;
|
||||||
|
|
||||||
LLInventoryCategoriesObserver() {};
|
LLInventoryCategoriesObserver() {};
|
||||||
virtual void changed(U32 mask);
|
virtual void changed(U32 mask);
|
||||||
@@ -284,7 +285,7 @@ protected:
|
|||||||
LLUUID mCatID;
|
LLUUID mCatID;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::map<LLUUID, LLCategoryData> category_map_t;
|
typedef std::unordered_map<LLUUID, LLCategoryData> category_map_t;
|
||||||
typedef category_map_t::value_type category_map_value_t;
|
typedef category_map_t::value_type category_map_value_t;
|
||||||
|
|
||||||
category_map_t mCategoryMap;
|
category_map_t mCategoryMap;
|
||||||
|
|||||||
Reference in New Issue
Block a user