Use std::move when calling createResultValue with NO_EXCEPTIONS (#273)

This commit is contained in:
Mike Cowan
2018-11-27 12:03:20 +00:00
committed by Andreas Süßenbach
parent f99407cf28
commit 95fde2253b
2 changed files with 4 additions and 4 deletions

View File

@@ -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 )
{