diff options
author | Brad King <brad.king@kitware.com> | 2016-09-06 12:50:55 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-09-06 12:50:55 (GMT) |
commit | 19255a3516e230da77b18c051d89012bcabcd254 (patch) | |
tree | 45f7f57f5b84a5664a08d198b924b8ed2cb32707 /Source/CPack | |
parent | eb226b366f40da2d284bb60d57c2d8bcb85de607 (diff) | |
parent | 1a9de8035c35cdb3e0501ce2cf2f816e4220bea0 (diff) | |
download | CMake-19255a3516e230da77b18c051d89012bcabcd254.zip CMake-19255a3516e230da77b18c051d89012bcabcd254.tar.gz CMake-19255a3516e230da77b18c051d89012bcabcd254.tar.bz2 |
Merge topic 'macro-parenthesis'
1a9de803 surround macro arguments with parentheses
Diffstat (limited to 'Source/CPack')
-rw-r--r-- | Source/CPack/cmCPackArchiveGenerator.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/CPack/cmCPackArchiveGenerator.cxx b/Source/CPack/cmCPackArchiveGenerator.cxx index 0d3725d..377fee1 100644 --- a/Source/CPack/cmCPackArchiveGenerator.cxx +++ b/Source/CPack/cmCPackArchiveGenerator.cxx @@ -87,17 +87,17 @@ int cmCPackArchiveGenerator::addOneComponentToArchive( */ #define DECLARE_AND_OPEN_ARCHIVE(filename, archive) \ cmGeneratedFileStream gf; \ - gf.Open(filename.c_str(), false, true); \ + gf.Open((filename).c_str(), false, true); \ if (!GenerateHeader(&gf)) { \ cmCPackLogger(cmCPackLog::LOG_ERROR, \ "Problem to generate Header for archive < " \ - << filename << ">." << std::endl); \ + << (filename) << ">." << std::endl); \ return 0; \ } \ cmArchiveWrite archive(gf, this->Compress, this->ArchiveFormat); \ - if (!archive) { \ + if (!(archive)) { \ cmCPackLogger(cmCPackLog::LOG_ERROR, "Problem to create archive < " \ - << filename << ">. ERROR =" << archive.GetError() \ + << (filename) << ">. ERROR =" << (archive).GetError() \ << std::endl); \ return 0; \ } |