From 25bc82d7ef481bd06723aae805d286eba81900ca Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Tue, 13 Apr 2021 10:34:23 -0700 Subject: Export of internal Abseil changes -- f09549625d7417fca379ff68334379d281480608 by Martijn Vels : Fix GetNumCPUs() for WIN32 platforms PiperOrigin-RevId: 368245360 -- e903c6690d0568f80356e03b07a895b031553977 by Abseil Team : Optimize `Cord::InlineRep::InlineRep(Cord::InlineRep&& src)`. PiperOrigin-RevId: 368198990 GitOrigin-RevId: f09549625d7417fca379ff68334379d281480608 Change-Id: I2d750c8c87f2804335a60ba8db949dedfaa462e2 --- absl/strings/cord.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'absl/strings') 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(); } -- cgit v1.2.3