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

Unified Diff: util/file/fd_io.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/traits.h ('k') | util/mach/exc_server_variants.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/file/fd_io.cc
diff --git a/util/file/fd_io.cc b/util/file/fd_io.cc
index 95257d83d758b056cebbd12e63b6a89ec9007520..270539c404440609a6d54f76f939f7ecf203ed3e 100644
--- a/util/file/fd_io.cc
+++ b/util/file/fd_io.cc
@@ -23,16 +23,16 @@
namespace {
struct ReadTraits {
- typedef void* VoidBufferType;
- typedef char* CharBufferType;
+ using VoidBufferType = void*;
+ using CharBufferType = char*;
static ssize_t Operate(int fd, CharBufferType buffer, size_t size) {
return read(fd, buffer, size);
}
};
struct WriteTraits {
- typedef const void* VoidBufferType;
- typedef const char* CharBufferType;
+ using VoidBufferType = const void*;
+ using CharBufferType = const char*;
static ssize_t Operate(int fd, CharBufferType buffer, size_t size) {
return write(fd, buffer, size);
}
« no previous file with comments | « snapshot/mac/process_types/traits.h ('k') | util/mach/exc_server_variants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698