diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-08-22 12:09:20 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-08-22 12:12:38 -0700 |
commit | 36e475ce4d0a3565a81329641e2a95152eb9ebc6 (patch) | |
tree | 37011a00288bc7a30d7ed0eadb6775e50318de61 /tensorflow/core/lib | |
parent | 8f2f9eb49813568b6a7b6a1fa7480e961f7b8c9a (diff) |
Replaced calls to tensorflow::StringPiece::ToString with string conversions.
That is, instances of sp.ToString() are replaced with string(sp).
This will allow tensorflow::StringPiece::ToString to be removed, which is necessary before it can be replaced with absl::string_view.
PiperOrigin-RevId: 209806694
Diffstat (limited to 'tensorflow/core/lib')
-rw-r--r-- | tensorflow/core/lib/core/status.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/lib/core/status.cc b/tensorflow/core/lib/core/status.cc index 12dfcd284f..cb2a06e620 100644 --- a/tensorflow/core/lib/core/status.cc +++ b/tensorflow/core/lib/core/status.cc @@ -22,7 +22,7 @@ Status::Status(tensorflow::error::Code code, StringPiece msg) { assert(code != tensorflow::error::OK); state_ = std::unique_ptr<State>(new State); state_->code = code; - state_->msg = msg.ToString(); + state_->msg = string(msg); } void Status::Update(const Status& new_status) { |