Use std::swap for DynamicLibrary move assign

This commit is contained in:
Jack Andersen 2020-02-21 20:08:03 -10:00
parent dc954e0f6d
commit 44b1ea9202
2 changed files with 2 additions and 4 deletions

View File

@ -1145,8 +1145,7 @@ void VulkanHppGenerator::appendDispatchLoaderDynamic(std::string & str)
DynamicLoader &operator=( DynamicLoader && other ) VULKAN_HPP_NOEXCEPT
{
m_success = other.m_success;
m_library = other.m_library;
other.m_library = nullptr;
std::swap(m_library, other.m_library);
return *this;
}

View File

@ -72528,8 +72528,7 @@ namespace VULKAN_HPP_NAMESPACE
DynamicLoader &operator=( DynamicLoader && other ) VULKAN_HPP_NOEXCEPT
{
m_success = other.m_success;
m_library = other.m_library;
other.m_library = nullptr;
std::swap(m_library, other.m_library);
return *this;
}