diff options
author | Brad King <brad.king@kitware.com> | 2018-11-27 18:19:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-11-27 18:20:34 (GMT) |
commit | cb6229b8b8aabfc9700dae88485c89738af928bc (patch) | |
tree | 986b8a6d4931d5926d91fadcf1d26fca78193297 /Source/cmXCodeScheme.cxx | |
parent | f49efe283ed005aac642f5af58ea971d468de88c (diff) | |
download | CMake-cb6229b8b8aabfc9700dae88485c89738af928bc.zip CMake-cb6229b8b8aabfc9700dae88485c89738af928bc.tar.gz CMake-cb6229b8b8aabfc9700dae88485c89738af928bc.tar.bz2 |
clang-tidy: fix warnings in macOS-only code
Diffstat (limited to 'Source/cmXCodeScheme.cxx')
-rw-r--r-- | Source/cmXCodeScheme.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmXCodeScheme.cxx b/Source/cmXCodeScheme.cxx index 58cb9c9..d301ad0 100644 --- a/Source/cmXCodeScheme.cxx +++ b/Source/cmXCodeScheme.cxx @@ -35,7 +35,7 @@ void cmXCodeScheme::WriteXCodeSharedScheme(const std::string& xcProjDir, xcodeSchemeFile += this->TargetName; xcodeSchemeFile += ".xcscheme"; - cmGeneratedFileStream fout(xcodeSchemeFile.c_str()); + cmGeneratedFileStream fout(xcodeSchemeFile); fout.SetCopyIfDifferent(true); if (!fout) { return; @@ -216,7 +216,7 @@ void cmXCodeScheme::WriteLaunchAction(cmXMLWriter& xout, if (!arguments.empty()) { xout.StartElement("CommandLineArguments"); - for (auto argument : arguments) { + for (auto const& argument : arguments) { xout.StartElement("CommandLineArgument"); xout.BreakAttributes(); |