diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-06-04 07:46:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-04 07:46:43 (GMT) |
commit | a32a2087b65e9e858fbd1450555108bfda95adfb (patch) | |
tree | 0c90f2c9c5a17c0947a84a3f137816e9a5719f91 /src/disk_interface_test.cc | |
parent | ea9f736100ec5db72526c286c0e8c9e626b2a908 (diff) | |
download | Ninja-a32a2087b65e9e858fbd1450555108bfda95adfb.zip Ninja-a32a2087b65e9e858fbd1450555108bfda95adfb.tar.gz Ninja-a32a2087b65e9e858fbd1450555108bfda95adfb.tar.bz2 |
[clang-tidy] remove pointless c_str() (#1785)
Found with readability-redundant-string-cstr
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/disk_interface_test.cc')
-rw-r--r-- | src/disk_interface_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/disk_interface_test.cc b/src/disk_interface_test.cc index bac515d..866d1d6 100644 --- a/src/disk_interface_test.cc +++ b/src/disk_interface_test.cc @@ -190,7 +190,7 @@ TEST_F(DiskInterfaceTest, ReadFile) { TEST_F(DiskInterfaceTest, MakeDirs) { string path = "path/with/double//slash/"; - EXPECT_TRUE(disk_.MakeDirs(path.c_str())); + EXPECT_TRUE(disk_.MakeDirs(path)); FILE* f = fopen((path + "a_file").c_str(), "w"); EXPECT_TRUE(f); EXPECT_EQ(0, fclose(f)); |