summaryrefslogtreecommitdiffstats
path: root/oatdump
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2018-09-19 10:58:18 -0700
committerAndreas Gampe <agampe@google.com>2018-09-19 21:56:32 -0700
commit9a20ff06f7ccee08a742c315ec6d351ab56ba1cd (patch)
tree7e55557e118eb5fffe03ad3456e00d8469a36232 /oatdump
parent70dfb6983492aff1c52cc1b52044258aef51f47f (diff)
downloadart-9a20ff06f7ccee08a742c315ec6d351ab56ba1cd.tar.gz
art-9a20ff06f7ccee08a742c315ec6d351ab56ba1cd.tar.bz2
art-9a20ff06f7ccee08a742c315ec6d351ab56ba1cd.zip
ART: Refactor typedef to using
Add clang-tidy's modernize-use-using. Bug: 32619234 Test: WITH_TIDY=1 mmma art Change-Id: If50d37b5152af4270784e3cde7951292a9e19033
Diffstat (limited to 'oatdump')
-rw-r--r--oatdump/oatdump.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/oatdump/oatdump.cc b/oatdump/oatdump.cc
index 707fc1c9ed..d30ec3157d 100644
--- a/oatdump/oatdump.cc
+++ b/oatdump/oatdump.cc
@@ -419,7 +419,7 @@ class OatDumper {
return instruction_set_;
}
- typedef std::vector<std::unique_ptr<const DexFile>> DexFileUniqV;
+ using DexFileUniqV = std::vector<std::unique_ptr<const DexFile>>;
bool Dump(std::ostream& os) {
bool success = true;
@@ -2480,7 +2480,7 @@ class ImageDumper {
size_t bytes;
size_t count;
};
- typedef SafeMap<std::string, SizeAndCount> SizeAndCountTable;
+ using SizeAndCountTable = SafeMap<std::string, SizeAndCount>;
SizeAndCountTable sizes_and_counts;
void Update(const char* descriptor, size_t object_bytes_in) {