swap cleared settings vector
This commit is contained in:
parent
a7c6cdcbc1
commit
efbb4c20f6
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user