Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(548)

Unified Diff: snapshot/mac/mach_o_image_reader_test.cc

Issue 700143004: C++11: Use type aliases instead of typedefs (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « snapshot/cpu_context.h ('k') | snapshot/mac/mach_o_image_symbol_table_reader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/mac/mach_o_image_reader_test.cc
diff --git a/snapshot/mac/mach_o_image_reader_test.cc b/snapshot/mac/mach_o_image_reader_test.cc
index 57dc28edda500d6ffbc3aabf7767d2df88214524..3412aabd6b5fee4d46e1e03dd96f26e142354f52 100644
--- a/snapshot/mac/mach_o_image_reader_test.cc
+++ b/snapshot/mac/mach_o_image_reader_test.cc
@@ -43,22 +43,22 @@ namespace {
// Native types and constants, in cases where the 32-bit and 64-bit versions
// are different.
#if defined(ARCH_CPU_64_BITS)
-typedef mach_header_64 MachHeader;
+using MachHeader = mach_header_64;
const uint32_t kMachMagic = MH_MAGIC_64;
-typedef segment_command_64 SegmentCommand;
+using SegmentCommand = segment_command_64;
const uint32_t kSegmentCommand = LC_SEGMENT_64;
-typedef section_64 Section;
-typedef nlist_64 Nlist;
+using Section = section_64;
+using Nlist = nlist_64;
#else
-typedef mach_header MachHeader;
+using MachHeader = mach_header;
const uint32_t kMachMagic = MH_MAGIC;
-typedef segment_command SegmentCommand;
+using SegmentCommand = segment_command;
const uint32_t kSegmentCommand = LC_SEGMENT;
-typedef section Section;
+using Section = section;
// This needs to be called “struct nlist” because “nlist” without the struct
// refers to the nlist() function.
-typedef struct nlist Nlist;
+using Nlist = struct nlist;
#endif
#if defined(ARCH_CPU_X86_64)
« no previous file with comments | « snapshot/cpu_context.h ('k') | snapshot/mac/mach_o_image_symbol_table_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698