From 0197fa41dafb41b76e52416eda105399aac8bafd Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Wed, 6 Mar 2019 20:31:22 +0000 Subject: [PATCH] Correct spelling mistakes --- docs/ApplicationArchitecture.md | 4 ++-- src/CalcManager/UnitConverter.cpp | 2 +- src/CalcViewModel/Common/KeyboardShortcutManager.cpp | 4 ++-- src/CalcViewModel/Common/Utils.h | 2 +- src/Calculator/Views/SupplementaryResults.xaml.cpp | 4 ++-- src/CalculatorUnitTests/MultiWindowUnitTests.cpp | 2 +- src/CalculatorUnitTests/StandardViewModelUnitTests.cpp | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/ApplicationArchitecture.md b/docs/ApplicationArchitecture.md index 4f71b10..0d7c2ff 100644 --- a/docs/ApplicationArchitecture.md +++ b/docs/ApplicationArchitecture.md @@ -87,7 +87,7 @@ The ViewModel layer is contained in the [CalcViewModel][CalcViewModel folder] pr data for the UI to bind against and act as the intermediary separating pure business logic from UI components that should not care about the model's implementation. Just as the View layer consists of a hierarchy of XAML files, the ViewModel consists of a hierarchy of ViewModel files. The relationship between XAML and ViewModel files is often 1:1. -Here are the noteable ViewModel files to start exploring with: +Here are the notable ViewModel files to start exploring with: * [ApplicationViewModel.h][ApplicationViewModel.h]: The ViewModel for [MainPage.xaml][MainPage.xaml]. This ViewModel is the root of the other mode-specific ViewModels. The application changes between modes by updating the `Mode` property @@ -199,4 +199,4 @@ The RatPack (short for Rational Pack) is the core of the Calculator model and co [CalcManager folder]: ../src/CalcManager [CalculatorManager.h]: ../src/CalcManager/CalculatorManager.h [CalcEngine.h]: ../src/CalcManager/Header Files/CalcEngine.h -[ratpak.h]: ../src/CalcManager/Ratpack/ratpak.h \ No newline at end of file +[ratpak.h]: ../src/CalcManager/Ratpack/ratpak.h diff --git a/src/CalcManager/UnitConverter.cpp b/src/CalcManager/UnitConverter.cpp index 587a311..07f75d3 100644 --- a/src/CalcManager/UnitConverter.cpp +++ b/src/CalcManager/UnitConverter.cpp @@ -903,7 +903,7 @@ shared_ptr UnitConverter::GetDataLoaderForCategory(const C } /// -/// Sets the intial values for m_fromType and m_toType. +/// Sets the initial values for m_fromType and m_toType. /// This is an internal helper method as opposed to SetCurrentUnits /// which is for external use by clients. /// If we fail to set units, we will fallback to the EMPTY_UNIT. diff --git a/src/CalcViewModel/Common/KeyboardShortcutManager.cpp b/src/CalcViewModel/Common/KeyboardShortcutManager.cpp index d8c40f4..248f65c 100644 --- a/src/CalcViewModel/Common/KeyboardShortcutManager.cpp +++ b/src/CalcViewModel/Common/KeyboardShortcutManager.cpp @@ -441,8 +441,8 @@ void KeyboardShortcutManager::OnVirtualKeyControlInverseChordPropertyChanged( } } -// In the three event handlers bellow we will not mark the event as handled -// because this is a sumplemental operation and we don't want to interfere with +// In the three event handlers below we will not mark the event as handled +// because this is a supplemental operation and we don't want to interfere with // the normal keyboard handling. void KeyboardShortcutManager::OnCharacterReceivedHandler(CoreWindow^ sender, CharacterReceivedEventArgs^ args) { diff --git a/src/CalcViewModel/Common/Utils.h b/src/CalcViewModel/Common/Utils.h index 949ba0f..d682a76 100644 --- a/src/CalcViewModel/Common/Utils.h +++ b/src/CalcViewModel/Common/Utils.h @@ -398,7 +398,7 @@ namespace Utils static void On##name##PropertyChangedImpl(Windows::UI::Xaml::DependencyObject^ sender, Windows::UI::Xaml::DependencyPropertyChangedEventArgs^ args) {\ On##name##PropertyChanged(sender, safe_cast(args->OldValue), safe_cast(args->NewValue)); } public: -// This goes into the cpp to initalize the static variable +// This goes into the cpp to initialize the static variable #define DEPENDENCY_PROPERTY_INITIALIZATION(owner, name)\ Windows::UI::Xaml::DependencyProperty^ owner::s_##name##Property =\ owner::Initialize##name##Property(); diff --git a/src/Calculator/Views/SupplementaryResults.xaml.cpp b/src/Calculator/Views/SupplementaryResults.xaml.cpp index e814993..e5d1049 100644 --- a/src/Calculator/Views/SupplementaryResults.xaml.cpp +++ b/src/Calculator/Views/SupplementaryResults.xaml.cpp @@ -103,13 +103,13 @@ void SupplementaryResults::OnConverterPropertyChanged(Object^ /*sender*/, Proper void SupplementaryResults::OnWindowSizeChanged(Platform::Object^ sender, Windows::UI::Core::WindowSizeChangedEventArgs^ e) { - // to reload supplementary results everytime the window is resized + // to reload supplementary results every time the window is resized RefreshData(); } void SupplementaryResults::OnSupplementaryValuesLayoutUpdated(Platform::Object^ sender, Platform::Object^ e) { - // This means we overflowed and are cutting off, or in a very rare case we fit exactly. Unforunately + // This means we overflowed and are cutting off, or in a very rare case we fit exactly. Unfortunately // the fitting exactly case will still have an item removed, as there is no other way for us to // detect that we need to trim. Grid^ parentGrid = dynamic_cast(VisualTreeHelper::GetParent(this)); diff --git a/src/CalculatorUnitTests/MultiWindowUnitTests.cpp b/src/CalculatorUnitTests/MultiWindowUnitTests.cpp index 7e14a11..1581730 100644 --- a/src/CalculatorUnitTests/MultiWindowUnitTests.cpp +++ b/src/CalculatorUnitTests/MultiWindowUnitTests.cpp @@ -101,7 +101,7 @@ namespace CalculatorUnitTests } } - // Perform calculations on diferent calculator modes and verify that they work independently + // Perform calculations on different calculator modes and verify that they work independently TEST_METHOD(MultipleModesCalculationTest) { std::vector viewModels(3); diff --git a/src/CalculatorUnitTests/StandardViewModelUnitTests.cpp b/src/CalculatorUnitTests/StandardViewModelUnitTests.cpp index 640f163..214c612 100644 --- a/src/CalculatorUnitTests/StandardViewModelUnitTests.cpp +++ b/src/CalculatorUnitTests/StandardViewModelUnitTests.cpp @@ -509,7 +509,7 @@ namespace CalculatorUnitTests } // Switch Calculator Mode and verify if mode switch is happening as expected. - // Test precendence to check if mode switch is happening + // Test precedence to check if mode switch is happening // Standard mode 1+2*3 = 9; Scientific mode 1+2*3 = 7 // Intermediate value is also different. after 1 + 2 * , standard shows 3, scientific shows 2 TEST_METHOD(ButtonPressedCalculatorModeSwitch)