aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/platform/windows
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-08-28 09:07:14 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-08-28 09:11:17 -0700
commitf8f5bbe006bc98e98fd939898ceff08dbaace34f (patch)
tree0ce731cb888e678790f69923788decfb58a7a9cb /tensorflow/core/platform/windows
parent2cb954e5441605c8668d2aecbf12e324a07b3c89 (diff)
Removed ToString method from tensorflow::StringPiece.
This will make it easier to replace tensorflow::StringPiece with absl::string_view, as absl::string_view does not contain a ToString method. PiperOrigin-RevId: 210550029
Diffstat (limited to 'tensorflow/core/platform/windows')
-rw-r--r--tensorflow/core/platform/windows/windows_file_system.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/platform/windows/windows_file_system.h b/tensorflow/core/platform/windows/windows_file_system.h
index 6b04720c68..1f4c535f24 100644
--- a/tensorflow/core/platform/windows/windows_file_system.h
+++ b/tensorflow/core/platform/windows/windows_file_system.h
@@ -71,7 +71,7 @@ class LocalWinFileSystem : public WindowsFileSystem {
string TranslateName(const string& name) const override {
StringPiece scheme, host, path;
io::ParseURI(name, &scheme, &host, &path);
- return path.ToString();
+ return string(path);
}
};