aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/platform/windows/windows_file_system.h
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/platform/windows/windows_file_system.h')
-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);
}
};