diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-05-29 12:15:40 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-05-29 13:56:08 (GMT) |
commit | 57cedb18c097a7231223b8a4279534216cad1b93 (patch) | |
tree | 9a33bf86cbcc6b4ca49c90c3cb77d4fe86daa26e /Source/cmcmd.cxx | |
parent | 7c39a9c6b6e2463b9fefc7516faeb48c2cbbd997 (diff) | |
download | CMake-57cedb18c097a7231223b8a4279534216cad1b93.zip CMake-57cedb18c097a7231223b8a4279534216cad1b93.tar.gz CMake-57cedb18c097a7231223b8a4279534216cad1b93.tar.bz2 |
cmSystemTools: std::string parameters for tar functions
Diffstat (limited to 'Source/cmcmd.cxx')
-rw-r--r-- | Source/cmcmd.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx index 4ddfddd..8f416a4 100644 --- a/Source/cmcmd.cxx +++ b/Source/cmcmd.cxx @@ -1127,7 +1127,7 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string> const& args) return 1; } if (action == cmSystemTools::TarActionList) { - if (!cmSystemTools::ListTar(outFile.c_str(), files, verbose)) { + if (!cmSystemTools::ListTar(outFile, files, verbose)) { cmSystemTools::Error("Problem listing tar: " + outFile); return 1; } @@ -1136,13 +1136,13 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string> const& args) cmSystemTools::Message("tar: No files or directories specified", "Warning"); } - if (!cmSystemTools::CreateTar(outFile.c_str(), files, compress, - verbose, mtime, format)) { + if (!cmSystemTools::CreateTar(outFile, files, compress, verbose, mtime, + format)) { cmSystemTools::Error("Problem creating tar: " + outFile); return 1; } } else if (action == cmSystemTools::TarActionExtract) { - if (!cmSystemTools::ExtractTar(outFile.c_str(), files, verbose)) { + if (!cmSystemTools::ExtractTar(outFile, files, verbose)) { cmSystemTools::Error("Problem extracting tar: " + outFile); return 1; } |