diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-12-10 14:17:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-12-12 19:04:14 (GMT) |
commit | 2988abd9390c1d6876610436883d1f7bcd405d8f (patch) | |
tree | 51c6f1aa4a9bcd1171ce51ffd42b5edca48ba4df /Source/cmcmd.cxx | |
parent | a74e6893480e491959e9165106f199a8cd0edd57 (diff) | |
download | CMake-2988abd9390c1d6876610436883d1f7bcd405d8f.zip CMake-2988abd9390c1d6876610436883d1f7bcd405d8f.tar.gz CMake-2988abd9390c1d6876610436883d1f7bcd405d8f.tar.bz2 |
clang-tidy: apply modernize-use-bool-literals fixes
Diffstat (limited to 'Source/cmcmd.cxx')
-rw-r--r-- | Source/cmcmd.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx index f1ce75a..5b12a75 100644 --- a/Source/cmcmd.cxx +++ b/Source/cmcmd.cxx @@ -169,13 +169,13 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string>& args) return 1; } // If error occurs we want to continue copying next files. - bool return_value = 0; + bool return_value = false; for (std::string::size_type cc = 2; cc < args.size() - 1; cc++) { if (!cmSystemTools::cmCopyFile(args[cc].c_str(), args[args.size() - 1].c_str())) { std::cerr << "Error copying file \"" << args[cc] << "\" to \"" << args[args.size() - 1] << "\".\n"; - return_value = 1; + return_value = true; } } return return_value; @@ -192,13 +192,13 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string>& args) return 1; } // If error occurs we want to continue copying next files. - bool return_value = 0; + bool return_value = false; for (std::string::size_type cc = 2; cc < args.size() - 1; cc++) { if (!cmSystemTools::CopyFileIfDifferent( args[cc].c_str(), args[args.size() - 1].c_str())) { std::cerr << "Error copying file (if different) from \"" << args[cc] << "\" to \"" << args[args.size() - 1] << "\".\n"; - return_value = 1; + return_value = true; } } return return_value; @@ -207,12 +207,12 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string>& args) // Copy directory content if (args[1] == "copy_directory" && args.size() > 3) { // If error occurs we want to continue copying next files. - bool return_value = 0; + bool return_value = false; for (std::string::size_type cc = 2; cc < args.size() - 1; cc++) { 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; + return_value = true; } } return return_value; @@ -479,11 +479,11 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string>& args) if (args[1] == "make_directory" && args.size() > 2) { // If error occurs we want to continue copying next files. - bool return_value = 0; + bool return_value = false; for (std::string::size_type cc = 2; cc < args.size(); cc++) { if (!cmSystemTools::MakeDirectory(args[cc].c_str())) { std::cerr << "Error creating directory \"" << args[cc] << "\".\n"; - return_value = 1; + return_value = true; } } return return_value; |