Merge pull request #518 from jackoalan/dynamic-loader-move-assign

Use std::swap for DynamicLibrary move assign
This commit is contained in:
Andreas Süßenbach 2020-02-24 10:19:27 +01:00 committed by GitHub
commit 8dda61900d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}