diff options
author | Abseil Team <absl-team@google.com> | 2021-04-13 10:34:23 -0700 |
---|---|---|
committer | Dino Radaković <dinor@google.com> | 2021-04-13 16:57:41 -0700 |
commit | 25bc82d7ef481bd06723aae805d286eba81900ca (patch) | |
tree | c3a878e5cbd2f8426cbc43ffad8c1f0655cd34a5 /absl/strings | |
parent | b97a1ecda869ca8754d467a56c50275cebfeb328 (diff) |
Export of internal Abseil changes
--
f09549625d7417fca379ff68334379d281480608 by Martijn Vels <mvels@google.com>:
Fix GetNumCPUs() for WIN32 platforms
PiperOrigin-RevId: 368245360
--
e903c6690d0568f80356e03b07a895b031553977 by Abseil Team <absl-team@google.com>:
Optimize `Cord::InlineRep::InlineRep(Cord::InlineRep&& src)`.
PiperOrigin-RevId: 368198990
GitOrigin-RevId: f09549625d7417fca379ff68334379d281480608
Change-Id: I2d750c8c87f2804335a60ba8db949dedfaa462e2
Diffstat (limited to 'absl/strings')
-rw-r--r-- | absl/strings/cord.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/absl/strings/cord.h b/absl/strings/cord.h index cb2ffc5c..7ce938ca 100644 --- a/absl/strings/cord.h +++ b/absl/strings/cord.h @@ -946,8 +946,7 @@ inline Cord::InlineRep::InlineRep(const Cord::InlineRep& src) } } -inline Cord::InlineRep::InlineRep(Cord::InlineRep&& src) { - data_ = src.data_; +inline Cord::InlineRep::InlineRep(Cord::InlineRep&& src) : data_(src.data_) { src.ResetToEmpty(); } |