summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Niklas Hasse <jhasse@bixense.com>2020-11-10 11:34:44 (GMT)
committerGitHub <noreply@github.com>2020-11-10 11:34:44 (GMT)
commit3094b5c289b418b31e63ad2e7f52a38cf64e3dfc (patch)
treee938030fcc49419fca00d145f65ff587f9a68b01 /src
parent17bcd4c8d69d3e5a0d11092938d30ac29aeb65e1 (diff)
parent9fa3491284af9a595cd46c6b230bcffb0ab8aec9 (diff)
downloadNinja-3094b5c289b418b31e63ad2e7f52a38cf64e3dfc.zip
Ninja-3094b5c289b418b31e63ad2e7f52a38cf64e3dfc.tar.gz
Ninja-3094b5c289b418b31e63ad2e7f52a38cf64e3dfc.tar.bz2
Merge pull request #1787 from neheb/str
[clang-tidy] remove pointless string init
Diffstat (limited to 'src')
-rw-r--r--src/string_piece_util_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string_piece_util_test.cc b/src/string_piece_util_test.cc
index b77ae84..61586dd 100644
--- a/src/string_piece_util_test.cc
+++ b/src/string_piece_util_test.cc
@@ -31,7 +31,7 @@ TEST(StringPieceUtilTest, SplitStringPiece) {
}
{
- string empty("");
+ string empty;
vector<StringPiece> list = SplitStringPiece(empty, ':');
EXPECT_EQ(list.size(), 1);
@@ -82,7 +82,7 @@ TEST(StringPieceUtilTest, JoinStringPiece) {
}
{
- string empty("");
+ string empty;
vector<StringPiece> list = SplitStringPiece(empty, ':');
EXPECT_EQ("", JoinStringPiece(list, ':'));