mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2025-09-12 21:38:42 -04:00
Use std::move when calling createResultValue with NO_EXCEPTIONS (#273)
This commit is contained in:
parent
f99407cf28
commit
95fde2253b
@ -600,7 +600,7 @@ const std::string createResultValueHeader = R"(
|
||||
{
|
||||
#ifdef VULKAN_HPP_NO_EXCEPTIONS
|
||||
VULKAN_HPP_ASSERT( result == Result::eSuccess );
|
||||
return ResultValue<T>( result, data );
|
||||
return ResultValue<T>( result, std::move(data) );
|
||||
#else
|
||||
if ( result != Result::eSuccess )
|
||||
{
|
||||
@ -643,7 +643,7 @@ const std::string createResultValueHeader = R"(
|
||||
{
|
||||
#ifdef VULKAN_HPP_NO_EXCEPTIONS
|
||||
VULKAN_HPP_ASSERT( result == Result::eSuccess );
|
||||
return ResultValue<UniqueHandle<T,D>>( result, UniqueHandle<T,D>(data, deleter) );
|
||||
return ResultValue<UniqueHandle<T,D>>( result, UniqueHandle<T,D>(std::move(data), deleter) );
|
||||
#else
|
||||
if ( result != Result::eSuccess )
|
||||
{
|
||||
|
@ -1037,7 +1037,7 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
#ifdef VULKAN_HPP_NO_EXCEPTIONS
|
||||
VULKAN_HPP_ASSERT( result == Result::eSuccess );
|
||||
return ResultValue<T>( result, data );
|
||||
return ResultValue<T>( result, std::move(data) );
|
||||
#else
|
||||
if ( result != Result::eSuccess )
|
||||
{
|
||||
@ -1080,7 +1080,7 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
#ifdef VULKAN_HPP_NO_EXCEPTIONS
|
||||
VULKAN_HPP_ASSERT( result == Result::eSuccess );
|
||||
return ResultValue<UniqueHandle<T,D>>( result, UniqueHandle<T,D>(data, deleter) );
|
||||
return ResultValue<UniqueHandle<T,D>>( result, UniqueHandle<T,D>(std::move(data), deleter) );
|
||||
#else
|
||||
if ( result != Result::eSuccess )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user