From 388e85886bb13ceeb91cbeb6d94cc9ab83f30f53 Mon Sep 17 00:00:00 2001 From: Shinichiro Hamaji Date: Fri, 3 Jul 2015 16:51:46 +0900 Subject: [C++] Remove STRING_PIECE macro --- strutil.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'strutil.cc') diff --git a/strutil.cc b/strutil.cc index 442b4bb..5393ed2 100644 --- a/strutil.cc +++ b/strutil.cc @@ -224,9 +224,9 @@ StringPiece TrimSpace(StringPiece s) { StringPiece Dirname(StringPiece s) { size_t found = s.rfind('/'); if (found == string::npos) - return STRING_PIECE("."); + return StringPiece("."); if (found == 0) - return STRING_PIECE(""); + return StringPiece(""); return s.substr(0, found); } @@ -240,7 +240,7 @@ StringPiece Basename(StringPiece s) { StringPiece GetExt(StringPiece s) { size_t found = s.rfind('.'); if (found == string::npos) - return STRING_PIECE(""); + return StringPiece(""); return s.substr(found); } -- cgit v1.2.3