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

Unified Diff: components/sync/syncable/parent_child_index.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
Index: components/sync/syncable/parent_child_index.h
diff --git a/components/sync/syncable/parent_child_index.h b/components/sync/syncable/parent_child_index.h
index b5af56b265b70c1e1907904bd92e23175ff40110..48ff0b476e0a54c4d9fcee99599d9e52af374837 100644
--- a/components/sync/syncable/parent_child_index.h
+++ b/components/sync/syncable/parent_child_index.h
@@ -26,8 +26,8 @@ struct ChildComparator {
};
// An ordered set of nodes.
-typedef std::set<EntryKernel*, ChildComparator> OrderedChildSet;
-typedef std::shared_ptr<OrderedChildSet> OrderedChildSetRef;
+using OrderedChildSet = std::set<EntryKernel*, ChildComparator>;
+using OrderedChildSetRef = std::shared_ptr<OrderedChildSet>;
// Container that tracks parent-child relationships.
// Provides fast lookup of all items under a given parent.
@@ -66,9 +66,9 @@ class ParentChildIndex {
private:
friend class ParentChildIndexTest;
- typedef std::map<Id, OrderedChildSetRef> ParentChildrenMap;
- typedef std::vector<Id> TypeRootIds;
- typedef std::vector<OrderedChildSetRef> TypeRootChildSets;
+ using ParentChildrenMap = std::map<Id, OrderedChildSetRef>;
+ using TypeRootIds = std::vector<Id>;
+ using TypeRootChildSets = std::vector<OrderedChildSetRef>;
static bool ShouldUseParentId(const Id& parent_id, ModelType model_type);
« no previous file with comments | « components/sync/syncable/nigori_util_unittest.cc ('k') | components/sync/syncable/syncable_delete_journal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698