diff options
Diffstat (limited to 'src/mbgl/style/class_dictionary.cpp')
-rw-r--r-- | src/mbgl/style/class_dictionary.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/style/class_dictionary.cpp b/src/mbgl/style/class_dictionary.cpp index ec06ee7d9d..6860044dbd 100644 --- a/src/mbgl/style/class_dictionary.cpp +++ b/src/mbgl/style/class_dictionary.cpp @@ -18,7 +18,7 @@ ClassDictionary &ClassDictionary::Get() { }); }); - ClassDictionary *ptr = reinterpret_cast<ClassDictionary *>(pthread_getspecific(store_key)); + auto *ptr = reinterpret_cast<ClassDictionary *>(pthread_getspecific(store_key)); if (ptr == nullptr) { ptr = new ClassDictionary(); pthread_setspecific(store_key, ptr); @@ -31,7 +31,7 @@ ClassID ClassDictionary::lookup(const std::string &class_name) { auto it = store.find(class_name); if (it == store.end()) { // Insert the class name into the store. - ClassID id = ClassID(uint32_t(ClassID::Named) + offset++); + auto id = ClassID(uint32_t(ClassID::Named) + offset++); store.emplace(class_name, id); return id; } else { |