swap cleared settings vector

This commit is contained in:
Hannes Janetzek 2015-07-03 15:37:55 +02:00
parent a7c6cdcbc1
commit efbb4c20f6

View File

@ -81,8 +81,8 @@ class SettingChanges : private noncopyable {
return *this; return *this;
clear(); clear();
m_settingChanges = std::move(rhs.m_settingChanges); std::swap(m_settingChanges, rhs.m_settingChanges);
rhs.m_settingChanges.clear();
return *this; return *this;
} }