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

Unified Diff: content/common/indexed_db/indexed_db_key_range.cc

Issue 1071683002: IndexedDB: Use C++11 in-class member initializers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review feedback Created 5 years, 8 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 | « content/common/indexed_db/indexed_db_key_range.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/indexed_db/indexed_db_key_range.cc
diff --git a/content/common/indexed_db/indexed_db_key_range.cc b/content/common/indexed_db/indexed_db_key_range.cc
index d061363fbde4c1baac4147da00eb091b0a9b96fb..171365e4b9341ebcc2c2bb5df890ed453662916e 100644
--- a/content/common/indexed_db/indexed_db_key_range.cc
+++ b/content/common/indexed_db/indexed_db_key_range.cc
@@ -9,11 +9,7 @@
namespace content {
-IndexedDBKeyRange::IndexedDBKeyRange()
- : lower_(blink::WebIDBKeyTypeNull),
- upper_(blink::WebIDBKeyTypeNull),
- lower_open_(false),
- upper_open_(false) {}
+IndexedDBKeyRange::IndexedDBKeyRange() = default;
IndexedDBKeyRange::IndexedDBKeyRange(const IndexedDBKey& lower,
const IndexedDBKey& upper,
@@ -25,7 +21,8 @@ IndexedDBKeyRange::IndexedDBKeyRange(const IndexedDBKey& lower,
upper_open_(upper_open) {}
IndexedDBKeyRange::IndexedDBKeyRange(const IndexedDBKey& key)
- : lower_(key), upper_(key), lower_open_(false), upper_open_(false) {}
+ : lower_(key), upper_(key) {
+}
IndexedDBKeyRange::IndexedDBKeyRange(const IndexedDBKeyRange& other) = default;
IndexedDBKeyRange::~IndexedDBKeyRange() = default;
« no previous file with comments | « content/common/indexed_db/indexed_db_key_range.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698