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

Unified Diff: components/sync/base/enum_set.h

Issue 2689773002: [Sync] Replace typedef with using. (Closed)
Patch Set: [Sync] Replace typedef with using. Created 3 years, 10 months 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 | « components/sync/base/cryptographer.h ('k') | components/sync/base/enum_set_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/base/enum_set.h
diff --git a/components/sync/base/enum_set.h b/components/sync/base/enum_set.h
index 2b5c8d9bc1850eb0153c494017ddc4e20c444469..1000956bc42e58e962eb75bb9357385d77d03764 100644
--- a/components/sync/base/enum_set.h
+++ b/components/sync/base/enum_set.h
@@ -41,7 +41,7 @@ EnumSet<E, Min, Max> Difference(EnumSet<E, Min, Max> set1,
template <typename E, E MinEnumValue, E MaxEnumValue>
class EnumSet {
public:
- typedef E EnumType;
+ using EnumType = E;
static const E kMinValue = MinEnumValue;
static const E kMaxValue = MaxEnumValue;
static const size_t kValueCount = kMaxValue - kMinValue + 1;
@@ -49,7 +49,7 @@ class EnumSet {
private:
// Declaration needed by Iterator.
- typedef std::bitset<kValueCount> EnumBitSet;
+ using EnumBitSet = std::bitset<kValueCount>;
public:
// Iterator is a forward-only read-only iterator for EnumSet. Its
« no previous file with comments | « components/sync/base/cryptographer.h ('k') | components/sync/base/enum_set_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698