mirror of
https://github.com/reactos/ninja.git
synced 2024-11-23 19:59:43 +00:00
[clang-tidy] remove pointless c_str() (#1785)
Found with readability-redundant-string-cstr Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
ea9f736100
commit
a32a2087b6
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user