From 4848692016c77b92da59d2d0a82e00b09f83c251 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Fri, 1 Sep 2017 12:14:36 +1000 Subject: [PATCH] info-tool: eliminate temporaries --- tools/info.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/info.cpp b/tools/info.cpp index 2c2a760..ed9c31b 100644 --- a/tools/info.cpp +++ b/tools/info.cpp @@ -28,9 +28,6 @@ main (int, char**) cruft::vk::instance instance (cruft::vk::instance::create_info {}); std::cout << "instance: " << instance << '\n'; - auto devices = cruft::vk::physical_device::find (instance); - - for (const auto &d: devices) { + for (const auto &d: cruft::vk::physical_device::find (instance)) std::cout << d << '\n'; - } } \ No newline at end of file