From 7efc8821c7818a0da022dd29fddca42f25d02b48 Mon Sep 17 00:00:00 2001 From: Julien Brianceau Date: Sun, 4 Apr 2021 15:53:45 +0200 Subject: [PATCH 1/2] Fix typos in the code base Note that only comments are impacted by this change. --- test/catch.hpp | 2 +- test/nuget/ConsoleApplication1/readme.txt | 2 +- test/test/velocity.cpp | 2 +- test/test_win7/velocity.cpp | 2 +- vsix/ItemTemplates/ViewModel/cppwinrt_ViewModel.vstemplate | 2 +- .../VC/Windows Desktop/ConsoleApplication/readme.txt | 2 +- .../VC/Windows Desktop/WindowsApplication/readme.txt | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/catch.hpp b/test/catch.hpp index f64422ae1..292ac805f 100644 --- a/test/catch.hpp +++ b/test/catch.hpp @@ -10545,7 +10545,7 @@ namespace Catch { // Extracts the actual name part of an enum instance // In other words, it returns the Blue part of Bikeshed::Colour::Blue StringRef extractInstanceName(StringRef enumInstance) { - // Find last occurence of ":" + // Find last occurrence of ":" size_t name_start = enumInstance.size(); while (name_start > 0 && enumInstance[name_start - 1] != ':') { --name_start; diff --git a/test/nuget/ConsoleApplication1/readme.txt b/test/nuget/ConsoleApplication1/readme.txt index 706ccef4d..403138c7e 100644 --- a/test/nuget/ConsoleApplication1/readme.txt +++ b/test/nuget/ConsoleApplication1/readme.txt @@ -7,7 +7,7 @@ classes directly from standard C++, using platform projection headers generated from Windows SDK metadata files. Steps to generate and consume SDK platform projection: -1. Build project initally to generate platform projection headers into +1. Build project initially to generate platform projection headers into your Generated Files folder. 2. Include a projection namespace header in your pch.h, such as . diff --git a/test/test/velocity.cpp b/test/test/velocity.cpp index 0c5ba5370..11b11c1d7 100644 --- a/test/test/velocity.cpp +++ b/test/test/velocity.cpp @@ -6,7 +6,7 @@ using namespace test_component::Velocity; TEST_CASE("velocity") { - // This interface is always disabled but shows up in the type sytem + // This interface is always disabled but shows up in the type system // if it is present in the winmd. IInterface1 a; REQUIRE(a == nullptr); diff --git a/test/test_win7/velocity.cpp b/test/test_win7/velocity.cpp index 0c5ba5370..11b11c1d7 100644 --- a/test/test_win7/velocity.cpp +++ b/test/test_win7/velocity.cpp @@ -6,7 +6,7 @@ using namespace test_component::Velocity; TEST_CASE("velocity") { - // This interface is always disabled but shows up in the type sytem + // This interface is always disabled but shows up in the type system // if it is present in the winmd. IInterface1 a; REQUIRE(a == nullptr); diff --git a/vsix/ItemTemplates/ViewModel/cppwinrt_ViewModel.vstemplate b/vsix/ItemTemplates/ViewModel/cppwinrt_ViewModel.vstemplate index 2a85b6f8e..47699df6d 100644 --- a/vsix/ItemTemplates/ViewModel/cppwinrt_ViewModel.vstemplate +++ b/vsix/ItemTemplates/ViewModel/cppwinrt_ViewModel.vstemplate @@ -2,7 +2,7 @@ ViewModel View Model (C++/WinRT) - An empty interface defintion suitable for XAML data binding, for a C++/WinRT Universal Windows Platform (UWP) app + An empty interface definition suitable for XAML data binding, for a C++/WinRT Universal Windows Platform (UWP) app VC 10 microsoft.Windows.CppWinRT.ViewModel diff --git a/vsix/ProjectTemplates/VC/Windows Desktop/ConsoleApplication/readme.txt b/vsix/ProjectTemplates/VC/Windows Desktop/ConsoleApplication/readme.txt index 29c419928..96dffd53b 100644 --- a/vsix/ProjectTemplates/VC/Windows Desktop/ConsoleApplication/readme.txt +++ b/vsix/ProjectTemplates/VC/Windows Desktop/ConsoleApplication/readme.txt @@ -7,7 +7,7 @@ classes directly from standard C++, using platform projection headers generated from Windows SDK metadata files. Steps to generate and consume SDK platform projection: -1. Build project initally to generate platform projection headers into +1. Build project initially to generate platform projection headers into your Generated Files folder. 2. Include a projection namespace header in your pch.h, such as . diff --git a/vsix/ProjectTemplates/VC/Windows Desktop/WindowsApplication/readme.txt b/vsix/ProjectTemplates/VC/Windows Desktop/WindowsApplication/readme.txt index 29c419928..96dffd53b 100644 --- a/vsix/ProjectTemplates/VC/Windows Desktop/WindowsApplication/readme.txt +++ b/vsix/ProjectTemplates/VC/Windows Desktop/WindowsApplication/readme.txt @@ -7,7 +7,7 @@ classes directly from standard C++, using platform projection headers generated from Windows SDK metadata files. Steps to generate and consume SDK platform projection: -1. Build project initally to generate platform projection headers into +1. Build project initially to generate platform projection headers into your Generated Files folder. 2. Include a projection namespace header in your pch.h, such as . From a5594311094af428bdbd6db7bff9314a571d9189 Mon Sep 17 00:00:00 2001 From: Julien Brianceau Date: Tue, 6 Apr 2021 11:25:19 +0200 Subject: [PATCH 2/2] Address PR comment (revert catch.hpp change) --- test/catch.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/catch.hpp b/test/catch.hpp index 292ac805f..f64422ae1 100644 --- a/test/catch.hpp +++ b/test/catch.hpp @@ -10545,7 +10545,7 @@ namespace Catch { // Extracts the actual name part of an enum instance // In other words, it returns the Blue part of Bikeshed::Colour::Blue StringRef extractInstanceName(StringRef enumInstance) { - // Find last occurrence of ":" + // Find last occurence of ":" size_t name_start = enumInstance.size(); while (name_start > 0 && enumInstance[name_start - 1] != ':') { --name_start;