summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaNormalTargetGenerator.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-05-26 20:52:22 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2016-05-26 20:52:22 (GMT)
commit1b2bb93302116a4791cf82e9cce028dfe87ef55d (patch)
treeb20aead9b34d9bdba3243439dd8f0aed032727e2 /Source/cmNinjaNormalTargetGenerator.cxx
parentacd8a73044e879286f0cfa24b54497a8307f204b (diff)
downloadCMake-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 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index 90022c0..3e91545 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -445,7 +445,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
name_of_def_file += ".def ";
vars["LINK_FLAGS"] += " /DEF:";
vars["LINK_FLAGS"] += this->GetLocalGenerator()->ConvertToOutputFormat(
- name_of_def_file.c_str(), cmOutputConverter::SHELL);
+ name_of_def_file, cmOutputConverter::SHELL);
}
}
@@ -572,13 +572,13 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
std::string cmd = cmakeCommand;
cmd += " -E __create_def ";
cmd += this->GetLocalGenerator()->ConvertToOutputFormat(
- name_of_def_file.c_str(), cmOutputConverter::SHELL);
+ name_of_def_file, cmOutputConverter::SHELL);
cmd += " ";
cmNinjaDeps objs = this->GetObjects();
std::string obj_list_file = name_of_def_file;
obj_list_file += ".objs";
cmd += this->GetLocalGenerator()->ConvertToOutputFormat(
- obj_list_file.c_str(), cmOutputConverter::SHELL);
+ obj_list_file, cmOutputConverter::SHELL);
preLinkCmdLines.push_back(cmd);
// create a list of obj files for the -E __create_def to read
cmGeneratedFileStream fout(obj_list_file.c_str());