diff options
author | Brad King <brad.king@kitware.com> | 2018-08-09 11:59:15 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-08-09 11:59:23 (GMT) |
commit | 34334c098f85004242f109857193f5f8cdce697d (patch) | |
tree | 4dee809ad1bbd9a3e22bb3c0c74c0891b5fb3ae4 /Source/cmNinjaTargetGenerator.cxx | |
parent | a9badfa6f470452f830f95db77e1ccc8eb65ce93 (diff) | |
parent | b6802cd506cd459f94fae7e4cadc8b94daa09d59 (diff) | |
download | CMake-34334c098f85004242f109857193f5f8cdce697d.zip CMake-34334c098f85004242f109857193f5f8cdce697d.tar.gz CMake-34334c098f85004242f109857193f5f8cdce697d.tar.bz2 |
Merge topic 'cmGeneratedFileStream_string'
b6802cd506 cmGeneratedFileStream: clang-tidy applied to remove redundant ``c_str`` calls
a688defcc6 cmGeneratedFileStream: Use ``std::string const&`` instead of ``const char*``
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2266
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index df32f40..1cfaac5 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -1133,7 +1133,7 @@ void cmNinjaTargetGenerator::WriteTargetDependInfo(std::string const& lang) } std::string const tdin = this->GetTargetDependInfoPath(lang); - cmGeneratedFileStream tdif(tdin.c_str()); + cmGeneratedFileStream tdif(tdin); tdif << tdi; } |