From e87ad28599c45d61530bdd43f637976535605cd7 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 13 Sep 2017 16:51:17 +1000 Subject: [PATCH] object: take constref to simplify rval passing --- object.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/object.hpp b/object.hpp index 29b441f..f6e424c 100644 --- a/object.hpp +++ b/object.hpp @@ -31,7 +31,7 @@ namespace cruft::vk { struct object { using native_type = native_t; - object (native_t _native): + object (const native_t &_native): m_native (_native) { CHECK_NEQ (m_native, VK_NULL_HANDLE);