From 3532496e21d59c299d3f1eccb55ddf51431e6501 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 10 Jun 2024 08:36:02 -0400 Subject: Avoid std::endl --- examples/pugl_vulkan_cpp_demo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/pugl_vulkan_cpp_demo.cpp b/examples/pugl_vulkan_cpp_demo.cpp index d0cc5a1..5e30b88 100644 --- a/examples/pugl_vulkan_cpp_demo.cpp +++ b/examples/pugl_vulkan_cpp_demo.cpp @@ -704,7 +704,7 @@ readFile(const char* const programPath, const std::string& filename) const std::unique_ptr path{ resourcePath(programPath, filename.c_str()), &free}; - std::cerr << "Loading shader: " << path.get() << std::endl; + std::cerr << "Loading shader: " << path.get() << "\n"; const std::unique_ptr file{fopen(path.get(), "rb"), &fclose}; @@ -1201,7 +1201,7 @@ debugCallback(VkDebugReportFlagsEXT flags, void*) { std::cerr << sk::string(static_cast(flags)) << ": " - << layerPrefix << ": " << msg << std::endl; + << layerPrefix << ": " << msg << "\n"; return VK_FALSE; } @@ -1236,7 +1236,7 @@ void logInfo(const char* heading, const Value& value) { std::cout << std::setw(26) << std::left << (std::string(heading) + ":") - << value << std::endl; + << value << "\n"; } VkResult -- cgit v1.2.1