From 4fbeeb97aa190029a07e1494780b511aa5721fc1 Mon Sep 17 00:00:00 2001 From: Alex Turbov Date: Fri, 26 Jul 2024 23:01:02 +0400 Subject: [PATCH] =?UTF-8?q?Refactor:=20`=E2=80=A6=20<<=20"\n"=20<<=20std::?= =?UTF-8?q?flush;`=20=E2=86=92=20`=E2=80=A6=20<<=20std::endl;`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/cmakemain.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index 69b5a1692f..b2d37cbca5 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -173,11 +173,11 @@ void cmakemainMessageCallback(const std::string& m, // cannot use it to print messages. Another implementation will // be needed to print colored messages on Windows. static_cast(md); - std::cerr << m << cmakemainGetStack(cm) << '\n' << std::flush; + std::cerr << m << cmakemainGetStack(cm) << std::endl; #else cmsysTerminal_cfprintf(md.desiredColor, stderr, "%s", m.c_str()); fflush(stderr); // stderr is buffered in some cases. - std::cerr << cmakemainGetStack(cm) << '\n' << std::flush; + std::cerr << cmakemainGetStack(cm) << std::endl; #endif }