aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-06-10 08:36:02 -0400
committerDavid Robillard <d@drobilla.net>2024-06-10 08:39:19 -0400
commit3532496e21d59c299d3f1eccb55ddf51431e6501 (patch)
treed3b459ba981eacffe7fdde7ced60281c68a77cc7 /examples
parente33b2f6b0cea6d6263990aa9abe6a69fdfba5973 (diff)
downloadpugl-3532496e21d59c299d3f1eccb55ddf51431e6501.tar.gz
pugl-3532496e21d59c299d3f1eccb55ddf51431e6501.tar.bz2
pugl-3532496e21d59c299d3f1eccb55ddf51431e6501.zip
Avoid std::endl
Diffstat (limited to 'examples')
-rw-r--r--examples/pugl_vulkan_cpp_demo.cpp6
1 files 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<char, decltype(&free)> 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, int (*)(FILE*)> file{fopen(path.get(), "rb"),
&fclose};
@@ -1201,7 +1201,7 @@ debugCallback(VkDebugReportFlagsEXT flags,
void*)
{
std::cerr << sk::string(static_cast<VkDebugReportFlagBitsEXT>(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