summaryrefslogtreecommitdiff
path: root/upbc/generator.cc
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2019-05-14 16:14:22 -0700
committerJoshua Haberman <jhaberman@gmail.com>2019-05-14 16:14:22 -0700
commitef9499cb44f58904d55997a9f934f1e477bcba18 (patch)
tree78543cd22fd2d043a4847aef939296f2017ea031 /upbc/generator.cc
parent06b90f9b693b43a007ee2c20f5e7a98595bd8721 (diff)
Migrate std::unordered_map -> absl::flat_hash_map.
Diffstat (limited to 'upbc/generator.cc')
-rw-r--r--upbc/generator.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/upbc/generator.cc b/upbc/generator.cc
index 5843597..1337e28 100644
--- a/upbc/generator.cc
+++ b/upbc/generator.cc
@@ -1,8 +1,7 @@
-#include <unordered_map>
-#include <unordered_set>
#include <memory>
+#include "absl/container/flat_hash_map.h"
#include "absl/strings/ascii.h"
#include "absl/strings/str_replace.h"
#include "absl/strings/substitute.h"
@@ -594,7 +593,7 @@ void WriteSource(const protobuf::FileDescriptor* file, Output& output) {
std::string fields_array_ref = "NULL";
std::string submsgs_array_ref = "NULL";
std::string oneofs_array_ref = "NULL";
- std::unordered_map<const protobuf::Descriptor*, int> submsg_indexes;
+ absl::flat_hash_map<const protobuf::Descriptor*, int> submsg_indexes;
MessageLayout layout(message);
std::vector<const protobuf::FieldDescriptor*> sorted_submsgs =
SortedSubmessages(message);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback