summaryrefslogtreecommitdiffstats
path: root/Source/cmXCodeScheme.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-11-27 18:19:45 (GMT)
committerBrad King <brad.king@kitware.com>2018-11-27 18:20:34 (GMT)
commitcb6229b8b8aabfc9700dae88485c89738af928bc (patch)
tree986b8a6d4931d5926d91fadcf1d26fca78193297 /Source/cmXCodeScheme.cxx
parentf49efe283ed005aac642f5af58ea971d468de88c (diff)
downloadCMake-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.cxx4
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();