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

Unified Diff: snapshot/mac/process_types.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/mac/process_types.h ('k') | snapshot/mac/process_types/traits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/mac/process_types.cc
diff --git a/snapshot/mac/process_types.cc b/snapshot/mac/process_types.cc
index 5bb0496afe5c099285a229187874c19b9c1f00f7..8c907b2f5957c732a059f6a454ecf11b2a949b2a 100644
--- a/snapshot/mac/process_types.cc
+++ b/snapshot/mac/process_types.cc
@@ -43,21 +43,21 @@ inline void Assign<process_types::internal::Reserved64Only64,
*destination = 0;
}
-typedef char CharArray16[16];
+using CharArray16 = char[16];
template <>
inline void Assign<CharArray16, CharArray16>(CharArray16* destination,
const CharArray16& source) {
memcpy(destination, &source, sizeof(source));
}
-typedef uint64_t UInt64Array16[16];
+using UInt64Array16 = uint64_t[16];
template <>
inline void Assign<UInt64Array16, UInt64Array16>(UInt64Array16* destination,
const UInt64Array16& source) {
memcpy(destination, &source, sizeof(source));
}
-typedef uint32_t UInt32Array16[16];
+using UInt32Array16 = uint32_t[16];
template <>
inline void Assign<UInt64Array16, UInt32Array16>(UInt64Array16* destination,
const UInt32Array16& source) {
@@ -68,7 +68,7 @@ inline void Assign<UInt64Array16, UInt32Array16>(UInt64Array16* destination,
template <>
inline void Assign<uuid_t, uuid_t>(uuid_t* destination, const uuid_t& source) {
- // uuid_t is a typedef for unsigned char[16].
+ // uuid_t is a type alias for unsigned char[16].
memcpy(destination, &source, sizeof(source));
}
« no previous file with comments | « snapshot/mac/process_types.h ('k') | snapshot/mac/process_types/traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698