diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-05-26 20:52:22 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-05-26 20:52:22 (GMT) |
commit | 1b2bb93302116a4791cf82e9cce028dfe87ef55d (patch) | |
tree | b20aead9b34d9bdba3243439dd8f0aed032727e2 /Source/cmcmd.cxx | |
parent | acd8a73044e879286f0cfa24b54497a8307f204b (diff) | |
download | CMake-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/cmcmd.cxx')
-rw-r--r-- | Source/cmcmd.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx index a7718d2..471028a 100644 --- a/Source/cmcmd.cxx +++ b/Source/cmcmd.cxx @@ -196,8 +196,7 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string>& args) // If error occurs we want to continue copying next files. bool return_value = 0; for (std::string::size_type cc = 2; cc < args.size() - 1; cc++) { - if (!cmSystemTools::CopyADirectory(args[cc].c_str(), - args[args.size() - 1].c_str())) { + if (!cmSystemTools::CopyADirectory(args[cc], args[args.size() - 1])) { std::cerr << "Error copying directory from \"" << args[cc] << "\" to \"" << args[args.size() - 1] << "\".\n"; return_value = 1; |