diff options
author | Brad King <brad.king@kitware.com> | 2019-02-25 13:00:00 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-02-25 13:02:07 (GMT) |
commit | 94970cd042963bedd4594d867802880b13fa9f69 (patch) | |
tree | d5e73d5905f0148b10c86649293a9c85f3b6830d /Source/cmSystemTools.cxx | |
parent | ac419931eed3e62cc69762a2a8b8dd76192999c0 (diff) | |
parent | 9dd255548d0a82994da71c3667f3b6668de50ffd (diff) | |
download | CMake-94970cd042963bedd4594d867802880b13fa9f69.zip CMake-94970cd042963bedd4594d867802880b13fa9f69.tar.gz CMake-94970cd042963bedd4594d867802880b13fa9f69.tar.bz2 |
Merge topic 'error-consolidate'
9dd255548d cmSystemTools::Error: consolidate parameters into single std::string
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2995
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 28a6564..2392473 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1425,12 +1425,12 @@ std::string cmSystemTools::RelativePath(std::string const& local, std::string const& remote) { if (!cmSystemTools::FileIsFullPath(local)) { - cmSystemTools::Error("RelativePath must be passed a full path to local: ", - local.c_str()); + cmSystemTools::Error("RelativePath must be passed a full path to local: " + + local); } if (!cmSystemTools::FileIsFullPath(remote)) { - cmSystemTools::Error("RelativePath must be passed a full path to remote: ", - remote.c_str()); + cmSystemTools::Error( + "RelativePath must be passed a full path to remote: " + remote); } return cmsys::SystemTools::RelativePath(local, remote); } @@ -1909,8 +1909,8 @@ bool extract_tar(const char* outFileName, bool verbose, bool extract) else { cmSystemTools::Error("Problem with archive_write_header(): ", archive_error_string(ext)); - cmSystemTools::Error("Current file: ", - cm_archive_entry_pathname(entry).c_str()); + cmSystemTools::Error("Current file: " + + cm_archive_entry_pathname(entry)); break; } } |