diff options
author | Kelvin Zhang <zhangkelvin@google.com> | 2020-09-17 06:00:06 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-09-17 06:00:06 +0000 |
commit | a073d14e3736f2c219377859f2f9e019e8c9e3e3 (patch) | |
tree | a846ad89b7e7eef87872abac205073d78ef43b8b | |
parent | 24915a7a530d567b3c10c2d453810cc996abd962 (diff) | |
parent | b15591f8f47a7c5d5771606a0f39b2f91720b135 (diff) | |
download | libchrome-a073d14e3736f2c219377859f2f9e019e8c9e3e3.tar.gz |
Use default copy constructor for base::TimeDelta am: 176ddafbdd am: 376b6914f3 am: 00e57e53d4 am: b15591f8f4
Original change: https://android-review.googlesource.com/c/platform/external/libchrome/+/1424628
Change-Id: I59bbd17e1b7bbbc13c2879232af292afce6de900
-rw-r--r-- | base/time/time.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/base/time/time.h b/base/time/time.h index b3c77e7289..ba7be4b8c4 100644 --- a/base/time/time.h +++ b/base/time/time.h @@ -199,10 +199,8 @@ class BASE_EXPORT TimeDelta { double InMicrosecondsF() const; int64_t InNanoseconds() const; - constexpr TimeDelta& operator=(TimeDelta other) { - delta_ = other.delta_; - return *this; - } + constexpr TimeDelta& operator=(const TimeDelta&) = default; + constexpr TimeDelta(const TimeDelta&) = default; // Computations with other deltas. Can easily be made constexpr with C++17 but // hard to do until then per limitations around |