From 6751b3d9b4e8339531cf40c237c7ee4cd3a857e9 Mon Sep 17 00:00:00 2001 From: Alex Turbov Date: Tue, 12 Nov 2024 02:33:21 +0400 Subject: [PATCH] cmLocalGenerator.cxx: Optimize `std::ostream::operator<<()` calls --- Source/cmLocalGenerator.cxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 6068bcb9fb..5c9baf965a 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -291,14 +291,14 @@ void cmLocalGenerator::ComputeObjectMaxPath() std::ostringstream w; w << "CMAKE_OBJECT_PATH_MAX is set to " << pmax << ", which is less than the minimum of 128. " - << "The value will be ignored."; + "The value will be ignored."; this->IssueMessage(MessageType::AUTHOR_WARNING, w.str()); } } else { std::ostringstream w; w << "CMAKE_OBJECT_PATH_MAX is set to \"" << *plen << "\", which fails to parse as a positive integer. " - << "The value will be ignored."; + "The value will be ignored."; this->IssueMessage(MessageType::AUTHOR_WARNING, w.str()); } } @@ -4429,10 +4429,10 @@ bool cmLocalGenerator::CheckDefinition(std::string const& define) const std::ostringstream e; /* clang-format off */ e << "WARNING: Function-style preprocessor definitions may not be " - << "passed on the compiler command line because many compilers " - << "do not support it.\n" - << "CMake is dropping a preprocessor definition: " << define << "\n" - << "Consider defining the macro in a (configured) header file.\n"; + "passed on the compiler command line because many compilers " + "do not support it.\n" + "CMake is dropping a preprocessor definition: " << define << "\n" + "Consider defining the macro in a (configured) header file.\n"; /* clang-format on */ cmSystemTools::Message(e.str()); return false; @@ -4444,10 +4444,10 @@ bool cmLocalGenerator::CheckDefinition(std::string const& define) const std::ostringstream e; /* clang-format off */ e << "WARNING: Preprocessor definitions containing '#' may not be " - << "passed on the compiler command line because many compilers " - << "do not support it.\n" - << "CMake is dropping a preprocessor definition: " << define << "\n" - << "Consider defining the macro in a (configured) header file.\n"; + "passed on the compiler command line because many compilers " + "do not support it.\n" + "CMake is dropping a preprocessor definition: " << define << "\n" + "Consider defining the macro in a (configured) header file.\n"; /* clang-format on */ cmSystemTools::Message(e.str()); return false;