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

Unified Diff: compat/mac/mach-o/getsect.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 | « compat/mac/mach-o/getsect.h ('k') | minidump/minidump_string_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compat/mac/mach-o/getsect.cc
diff --git a/compat/mac/mach-o/getsect.cc b/compat/mac/mach-o/getsect.cc
index b713180f39132c98833795af94c9ba9af52ca064..2990c9259b1eca18d7a1dda2003afacc6ddb0bd9 100644
--- a/compat/mac/mach-o/getsect.cc
+++ b/compat/mac/mach-o/getsect.cc
@@ -58,15 +58,15 @@ void* LookUpSystemLibMachOSymbol(const char* symbol) {
}
#ifndef __LP64__
-typedef mach_header MachHeader;
+using MachHeader = mach_header;
#else
-typedef mach_header_64 MachHeader;
+using MachHeader = mach_header_64;
#endif
-typedef uint8_t*(*GetSectionDataType)(
- const MachHeader*, const char*, const char*, unsigned long*);
-typedef uint8_t*(*GetSegmentDataType)(
- const MachHeader*, const char*, unsigned long*);
+using GetSectionDataType =
+ uint8_t*(*)(const MachHeader*, const char*, const char*, unsigned long*);
+using GetSegmentDataType =
+ uint8_t*(*)(const MachHeader*, const char*, unsigned long*);
} // namespace
« no previous file with comments | « compat/mac/mach-o/getsect.h ('k') | minidump/minidump_string_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698