diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-05-26 20:52:22 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-05-26 20:52:22 (GMT) |
commit | 1b2bb93302116a4791cf82e9cce028dfe87ef55d (patch) | |
tree | b20aead9b34d9bdba3243439dd8f0aed032727e2 /Tests/CMakeLib/testGeneratedFileStream.cxx | |
parent | acd8a73044e879286f0cfa24b54497a8307f204b (diff) | |
download | CMake-1b2bb93302116a4791cf82e9cce028dfe87ef55d.zip CMake-1b2bb93302116a4791cf82e9cce028dfe87ef55d.tar.gz CMake-1b2bb93302116a4791cf82e9cce028dfe87ef55d.tar.bz2 |
Remove redundant c_str() calls.
Run clang-tidy's readability-redundant-string-cstr checker.
Ignore findings in kwsys.
Diffstat (limited to 'Tests/CMakeLib/testGeneratedFileStream.cxx')
-rw-r--r-- | Tests/CMakeLib/testGeneratedFileStream.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Tests/CMakeLib/testGeneratedFileStream.cxx b/Tests/CMakeLib/testGeneratedFileStream.cxx index 128cab4..67dd69a 100644 --- a/Tests/CMakeLib/testGeneratedFileStream.cxx +++ b/Tests/CMakeLib/testGeneratedFileStream.cxx @@ -81,14 +81,14 @@ int testGeneratedFileStream(int, char* []) cmFailed("Something wrong with cmGeneratedFileStream. Cannot find file: ", file1.c_str()); } - cmSystemTools::RemoveFile(file1.c_str()); - cmSystemTools::RemoveFile(file2.c_str()); - cmSystemTools::RemoveFile(file3.c_str()); - cmSystemTools::RemoveFile(file4.c_str()); - cmSystemTools::RemoveFile(file1tmp.c_str()); - cmSystemTools::RemoveFile(file2tmp.c_str()); - cmSystemTools::RemoveFile(file3tmp.c_str()); - cmSystemTools::RemoveFile(file4tmp.c_str()); + cmSystemTools::RemoveFile(file1); + cmSystemTools::RemoveFile(file2); + cmSystemTools::RemoveFile(file3); + cmSystemTools::RemoveFile(file4); + cmSystemTools::RemoveFile(file1tmp); + cmSystemTools::RemoveFile(file2tmp); + cmSystemTools::RemoveFile(file3tmp); + cmSystemTools::RemoveFile(file4tmp); return failed; } |