aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/lib/io/path.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/lib/io/path.cc')
-rw-r--r--tensorflow/core/lib/io/path.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/core/lib/io/path.cc b/tensorflow/core/lib/io/path.cc
index 996fbf62e5..b62206012c 100644
--- a/tensorflow/core/lib/io/path.cc
+++ b/tensorflow/core/lib/io/path.cc
@@ -42,7 +42,7 @@ string JoinPathImpl(std::initializer_list<StringPiece> paths) {
if (path.empty()) continue;
if (result.empty()) {
- result = path.ToString();
+ result = std::string(path);
continue;
}
@@ -124,7 +124,7 @@ StringPiece Extension(StringPiece path) {
}
string CleanPath(StringPiece unclean_path) {
- string path = unclean_path.ToString();
+ string path = std::string(unclean_path);
const char* src = path.c_str();
string::iterator dst = path.begin();
@@ -237,7 +237,7 @@ void ParseURI(StringPiece remaining, StringPiece* scheme, StringPiece* host,
string CreateURI(StringPiece scheme, StringPiece host, StringPiece path) {
if (scheme.empty()) {
- return path.ToString();
+ return std::string(path);
}
return strings::StrCat(scheme, "://", host, path);
}