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

Unified Diff: minidump/minidump_string_writer.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 | « compat/mac/mach-o/getsect.cc ('k') | minidump/minidump_thread_writer_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: minidump/minidump_string_writer.h
diff --git a/minidump/minidump_string_writer.h b/minidump/minidump_string_writer.h
index bde25b5c535f2ca15ffc8c73e1996a210a9a76cf..1064736d32ead77e26bd5652d731dc211f51d0c9 100644
--- a/minidump/minidump_string_writer.h
+++ b/minidump/minidump_string_writer.h
@@ -30,13 +30,13 @@ namespace internal {
//! \cond
struct MinidumpStringWriterUTF16Traits {
- typedef string16 StringType;
- typedef MINIDUMP_STRING MinidumpStringType;
+ using StringType = string16;
+ using MinidumpStringType = MINIDUMP_STRING;
};
struct MinidumpStringWriterUTF8Traits {
- typedef std::string StringType;
- typedef MinidumpUTF8String MinidumpStringType;
+ using StringType = std::string;
+ using MinidumpStringType = MinidumpUTF8String;
};
//! \endcond
@@ -54,8 +54,8 @@ class MinidumpStringWriter : public MinidumpWritable {
~MinidumpStringWriter() override;
protected:
- typedef typename Traits::MinidumpStringType MinidumpStringType;
- typedef typename Traits::StringType StringType;
+ using MinidumpStringType = typename Traits::MinidumpStringType;
+ using StringType = typename Traits::StringType;
bool Freeze() override;
size_t SizeOfObject() override;
« no previous file with comments | « compat/mac/mach-o/getsect.cc ('k') | minidump/minidump_thread_writer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698