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

Unified Diff: snapshot/mac/process_types/traits.h

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.cc ('k') | util/file/fd_io.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/mac/process_types/traits.h
diff --git a/snapshot/mac/process_types/traits.h b/snapshot/mac/process_types/traits.h
index 6eac49adfaf41071d7857b99878a17fabbe2acb5..73ca7e956bb80f89c88a7a5d3364b9bf35a60c37 100644
--- a/snapshot/mac/process_types/traits.h
+++ b/snapshot/mac/process_types/traits.h
@@ -24,18 +24,18 @@
//
// |Reserved| is used for padding fields that may be zero-length, and thus
// __VA_ARGS__, which is intended to set the alignment of the 64-bit types, is
-// not used for that typedef.
+// not used for that type alias.
#define DECLARE_PROCESS_TYPE_TRAITS_CLASS(traits_name, lp_bits, ...) \
namespace crashpad { \
namespace process_types { \
namespace internal { \
struct Traits##traits_name { \
- typedef int##lp_bits##_t Long __VA_ARGS__; \
- typedef uint##lp_bits##_t ULong __VA_ARGS__; \
- typedef uint##lp_bits##_t Pointer __VA_ARGS__; \
- typedef int##lp_bits##_t IntPtr __VA_ARGS__; \
- typedef uint##lp_bits##_t UIntPtr __VA_ARGS__; \
- typedef Reserved64Only##lp_bits Reserved64Only; \
+ using Long = int##lp_bits##_t __VA_ARGS__; \
+ using ULong = uint##lp_bits##_t __VA_ARGS__; \
+ using Pointer = uint##lp_bits##_t __VA_ARGS__; \
+ using IntPtr = int##lp_bits##_t __VA_ARGS__; \
+ using UIntPtr = uint##lp_bits##_t __VA_ARGS__; \
+ using Reserved64Only = Reserved64Only##lp_bits; \
}; \
} \
} \
« no previous file with comments | « snapshot/mac/process_types.cc ('k') | util/file/fd_io.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698