diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-05-14 13:16:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-05-15 14:20:05 (GMT) |
commit | 23e8364aedcbeb7ce606b6075c98827e52f0c7f6 (patch) | |
tree | 66d765b7cc87c36b24efa83b4749ee0959863666 /Source/cmOutputRequiredFilesCommand.cxx | |
parent | e2d0aea2c734c8c5028f3573082e75bd157dbe72 (diff) | |
download | CMake-23e8364aedcbeb7ce606b6075c98827e52f0c7f6.zip CMake-23e8364aedcbeb7ce606b6075c98827e52f0c7f6.tar.gz CMake-23e8364aedcbeb7ce606b6075c98827e52f0c7f6.tar.bz2 |
Source: std::string related cleanup
Diffstat (limited to 'Source/cmOutputRequiredFilesCommand.cxx')
-rw-r--r-- | Source/cmOutputRequiredFilesCommand.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmOutputRequiredFilesCommand.cxx b/Source/cmOutputRequiredFilesCommand.cxx index cb9433f..4ed5581 100644 --- a/Source/cmOutputRequiredFilesCommand.cxx +++ b/Source/cmOutputRequiredFilesCommand.cxx @@ -293,8 +293,8 @@ protected: // Make sure we don't visit the same file more than once. info->DependDone = true; - const char* path = info->FullPath.c_str(); - if (!path) { + const std::string& path = info->FullPath; + if (path.empty()) { cmSystemTools::Error( "Attempt to find dependencies for file without path!"); return; @@ -356,7 +356,7 @@ protected: if (!found) { // Couldn't find any dependency information. if (this->ComplainFileRegularExpression.find(info->IncludeName)) { - cmSystemTools::Error("error cannot find dependencies for ", path); + cmSystemTools::Error("error cannot find dependencies for " + path); } else { // Destroy the name of the file so that it won't be output as a // dependency. |