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
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;
}