summaryrefslogtreecommitdiff
path: root/Source/cmAddCustomCommandCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-02-01 13:04:29 +0000
committerKitware Robot <kwrobot@kitware.com>2018-02-01 08:05:33 -0500
commitf8ca0ab3ac858730874176bf332808061fe179c6 (patch)
tree4aa58a0ff03b4713940fc41fcf81196017e35a5d /Source/cmAddCustomCommandCommand.cxx
parent3ffc9b99bb20b56d5dc232fee8c988aa34474a2f (diff)
parent653b894683abe63233cb8679b34ea39d9017e317 (diff)
downloadcmake-f8ca0ab3ac858730874176bf332808061fe179c6.tar.gz
Merge topic 'std-string-apis'
653b8946 Reduce raw string pointers usage. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1729
Diffstat (limited to 'Source/cmAddCustomCommandCommand.cxx')
-rw-r--r--Source/cmAddCustomCommandCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmAddCustomCommandCommand.cxx b/Source/cmAddCustomCommandCommand.cxx
index 6db50fa9f3..1e3faefa4c 100644
--- a/Source/cmAddCustomCommandCommand.cxx
+++ b/Source/cmAddCustomCommandCommand.cxx
@@ -204,7 +204,7 @@ bool cmAddCustomCommandCommand::InitialPass(
break;
}
- if (cmSystemTools::FileIsFullPath(filename.c_str())) {
+ if (cmSystemTools::FileIsFullPath(filename)) {
filename = cmSystemTools::CollapseFullPath(filename);
}
switch (doing) {
@@ -405,7 +405,7 @@ bool cmAddCustomCommandCommand::CheckOutputs(
for (std::string const& o : outputs) {
// Make sure the file will not be generated into the source
// directory during an out of source build.
- if (!this->Makefile->CanIWriteThisFile(o.c_str())) {
+ if (!this->Makefile->CanIWriteThisFile(o)) {
std::string e = "attempted to have a file \"" + o +
"\" in a source directory as an output of custom command.";
this->SetError(e);