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

Unified Diff: components/sync/model/attachments/attachment_id.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/model/attachments/attachment_id.h
diff --git a/components/sync/model/attachments/attachment_id.h b/components/sync/model/attachments/attachment_id.h
index d385657ed1c3c068c8a4b9b4ebbef4d243aac1b6..39d20809a93f1637bde0489ec1682032cfda4368 100644
--- a/components/sync/model/attachments/attachment_id.h
+++ b/components/sync/model/attachments/attachment_id.h
@@ -60,7 +60,7 @@ class AttachmentId {
// Necessary since we forward-declare sync_pb::AttachmentIdProto; see comments
// in immutable.h.
struct ImmutableAttachmentIdProtoTraits {
- typedef sync_pb::AttachmentIdProto* Wrapper;
+ using Wrapper = sync_pb::AttachmentIdProto*;
static void InitializeWrapper(Wrapper* wrapper);
static void DestroyWrapper(Wrapper* wrapper);
static const sync_pb::AttachmentIdProto& Unwrap(const Wrapper& wrapper);
@@ -69,9 +69,8 @@ class AttachmentId {
sync_pb::AttachmentIdProto* t2);
};
- typedef Immutable<sync_pb::AttachmentIdProto,
- ImmutableAttachmentIdProtoTraits>
- ImmutableAttachmentIdProto;
+ using ImmutableAttachmentIdProto =
+ Immutable<sync_pb::AttachmentIdProto, ImmutableAttachmentIdProtoTraits>;
ImmutableAttachmentIdProto proto_;
@@ -80,8 +79,8 @@ class AttachmentId {
// All public interfaces use AttachmentIdList. AttachmentIdSet is used in
// implementations of algorithms where set properties are needed.
-typedef std::vector<AttachmentId> AttachmentIdList;
-typedef std::set<AttachmentId> AttachmentIdSet;
+using AttachmentIdList = std::vector<AttachmentId>;
+using AttachmentIdSet = std::set<AttachmentId>;
} // namespace syncer
« no previous file with comments | « components/sync/model/attachments/attachment.h ('k') | components/sync/model/attachments/attachment_metadata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698