mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-28 16:20:50 +00:00
clang is not working with unordered_map (maybe because we use the old SDK)
This commit is contained in:
parent
ef1e44726f
commit
ce08c144e8
@ -13,13 +13,14 @@
|
||||
#include "base/mutex.h"
|
||||
#include "base/scoped_lock.h"
|
||||
|
||||
#include <unordered_map>
|
||||
#include <map>
|
||||
|
||||
namespace doc {
|
||||
|
||||
static base::mutex mutex;
|
||||
static ObjectId newId = 0;
|
||||
static std::unordered_map<ObjectId, Object*> objects;
|
||||
// TODO Profile this and see if an unordered_map works best.
|
||||
static std::map<ObjectId, Object*> objects;
|
||||
|
||||
Object::Object(ObjectType type)
|
||||
: m_type(type)
|
||||
|
Loading…
x
Reference in New Issue
Block a user