From 0078fff2cc604a755d42650eeb3c0e4099df66a2 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Sun, 7 Jun 2020 21:43:09 -0700 Subject: [PATCH] LSC: Replace cord.ToString() with std::string(cord) PiperOrigin-RevId: 315211101 Change-Id: Ibf47b68e124842247bd743016ad5bb3e2a79c3a9 --- tensorflow/core/platform/protobuf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/core/platform/protobuf.h b/tensorflow/core/platform/protobuf.h index 6b4db77ea3f..371912cc2b7 100644 --- a/tensorflow/core/platform/protobuf.h +++ b/tensorflow/core/platform/protobuf.h @@ -78,7 +78,7 @@ inline void SetProtobufStringSwapAllowed(std::string* src, std::string* dest) { // in core/platform/protobuf.h, so the generation code doesn't need to determine // if the type is Cord or string at generation time. inline std::string ProtobufStringToString(const absl::Cord& s) { - return s.ToString(); + return std::string(s); } inline void SetProtobufStringSwapAllowed(std::string* src, absl::Cord* dest) { dest->CopyFrom(*src);