mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Use std::swap for DynamicLibrary move assign
This commit is contained in:
parent
dc954e0f6d
commit
44b1ea9202
@ -1145,8 +1145,7 @@ void VulkanHppGenerator::appendDispatchLoaderDynamic(std::string & str)
|
|||||||
DynamicLoader &operator=( DynamicLoader && other ) VULKAN_HPP_NOEXCEPT
|
DynamicLoader &operator=( DynamicLoader && other ) VULKAN_HPP_NOEXCEPT
|
||||||
{
|
{
|
||||||
m_success = other.m_success;
|
m_success = other.m_success;
|
||||||
m_library = other.m_library;
|
std::swap(m_library, other.m_library);
|
||||||
other.m_library = nullptr;
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72528,8 +72528,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
DynamicLoader &operator=( DynamicLoader && other ) VULKAN_HPP_NOEXCEPT
|
DynamicLoader &operator=( DynamicLoader && other ) VULKAN_HPP_NOEXCEPT
|
||||||
{
|
{
|
||||||
m_success = other.m_success;
|
m_success = other.m_success;
|
||||||
m_library = other.m_library;
|
std::swap(m_library, other.m_library);
|
||||||
other.m_library = nullptr;
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user