From 9ae6569bfe0d1e68761e8f55b5ea9e905cc0369f Mon Sep 17 00:00:00 2001 From: Alex Turbov Date: Tue, 23 Aug 2022 20:21:26 +0400 Subject: ctest.cxx: Optimize `std::ostream::operator<<` calls --- Source/ctest.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Source/ctest.cxx b/Source/ctest.cxx index eba6d82..6310595 100644 --- a/Source/ctest.cxx +++ b/Source/ctest.cxx @@ -187,8 +187,7 @@ int main(int argc, char const* const* argv) if (cmSystemTools::GetCurrentWorkingDirectory().empty()) { cmCTestLog(&inst, ERROR_MESSAGE, - "Current working directory cannot be established." - << std::endl); + "Current working directory cannot be established.\n"); return 1; } @@ -200,10 +199,9 @@ int main(int argc, char const* const* argv) cmSystemTools::FileExists("DartTestfile.txt"))) { if (argc == 1) { cmCTestLog(&inst, ERROR_MESSAGE, - "*********************************" - << std::endl - << "No test configuration file found!" << std::endl - << "*********************************" << std::endl); + "*********************************\n" + "No test configuration file found!\n" + "*********************************\n"); } cmDocumentation doc; doc.addCTestStandardDocSections(); -- cgit v0.12