object: take constref to simplify rval passing
This commit is contained in:
parent
0ccbfc1cbe
commit
e87ad28599
@ -31,7 +31,7 @@ namespace cruft::vk {
|
|||||||
struct object {
|
struct object {
|
||||||
using native_type = native_t<SelfT>;
|
using native_type = native_t<SelfT>;
|
||||||
|
|
||||||
object (native_t<SelfT> _native):
|
object (const native_t<SelfT> &_native):
|
||||||
m_native (_native)
|
m_native (_native)
|
||||||
{
|
{
|
||||||
CHECK_NEQ (m_native, VK_NULL_HANDLE);
|
CHECK_NEQ (m_native, VK_NULL_HANDLE);
|
||||||
|
Loading…
Reference in New Issue
Block a user