From 9681cfc37c241ad888f8a3ff54fa21b7768cbdfa Mon Sep 17 00:00:00 2001 From: Jacob Poteet <64765148+JacobPoteet@users.noreply.github.com> Date: Sat, 10 Feb 2024 15:33:37 -0500 Subject: [PATCH] Add Torr unit to pressure units in UnitConverterDataLoader.cpp This commit adds the Torr unit to the list of pressure units in the UnitConverterDataLoader.cpp file. The Torr unit is assigned a value of 7 and its localized name and abbreviation are retrieved using GetLocalizedStringName(). Additionally, the conversion data for Torr is added to the GetConversionData() function. --- src/CalcViewModel/DataLoaders/UnitConverterDataLoader.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/CalcViewModel/DataLoaders/UnitConverterDataLoader.cpp b/src/CalcViewModel/DataLoaders/UnitConverterDataLoader.cpp index 844dd3fe..a5c9b916 100644 --- a/src/CalcViewModel/DataLoaders/UnitConverterDataLoader.cpp +++ b/src/CalcViewModel/DataLoaders/UnitConverterDataLoader.cpp @@ -757,6 +757,8 @@ void UnitConverterDataLoader::GetUnits(_In_ unordered_map angleUnits; angleUnits.push_back(OrderedUnit{ UnitConverterUnits::Angle_Degree, @@ -944,7 +946,8 @@ void UnitConverterDataLoader::GetConversionData(_In_ unordered_map