Removing Utils::Swap and using std::swap instead (#932)

This commit is contained in:
Scott Freeman
2020-01-14 18:22:50 -05:00
committed by Matt Cooley
parent ca0b3d83e8
commit 52de42e7fb
3 changed files with 2 additions and 18 deletions

View File

@@ -264,9 +264,9 @@ void UnitConverterViewModel::OnSwitchActive(Platform::Object ^ unused)
}
m_valueFromUnlocalized.swap(m_valueToUnlocalized);
Utils::Swap(&m_localizedValueFromFormat, &m_localizedValueToFormat);
swap(m_localizedValueFromFormat, m_localizedValueToFormat);
Utils::Swap(&m_Unit1AutomationName, &m_Unit2AutomationName);
swap(m_Unit1AutomationName, m_Unit2AutomationName);
RaisePropertyChanged(Unit1AutomationNamePropertyName);
RaisePropertyChanged(Unit2AutomationNamePropertyName);