diff --git a/dev/AnimatedIcon/AnimatedIcon.cpp b/dev/AnimatedIcon/AnimatedIcon.cpp index 4fcf6a02c3..a255aa80a0 100644 --- a/dev/AnimatedIcon/AnimatedIcon.cpp +++ b/dev/AnimatedIcon/AnimatedIcon.cpp @@ -10,6 +10,8 @@ #include "Utils.h" #include +#pragma warning(disable: 26478) // Don't use std::move on constant variables. (es.56). + static constexpr wstring_view s_progressPropertyName{ L"Progress"sv }; static constexpr wstring_view s_foregroundPropertyName{ L"Foreground"sv }; static constexpr wstring_view s_transitionInfix{ L"To"sv }; diff --git a/dev/Common/ColorConversion.cpp b/dev/Common/ColorConversion.cpp index 518d5336c8..3ace201aa9 100644 --- a/dev/Common/ColorConversion.cpp +++ b/dev/Common/ColorConversion.cpp @@ -6,6 +6,9 @@ #include "SharedHelpers.h" #include "ColorConversion.h" +#pragma warning(disable: 26478) // Don't use std::move on constant variables. (es.56). + + Rgb::Rgb(double r, double g, double b) : r{ r }, g{ g }, b{ b } { } diff --git a/dev/NavigationView/TopNavigationViewDataProvider.h b/dev/NavigationView/TopNavigationViewDataProvider.h index ac07d52c1e..99ba877557 100644 --- a/dev/NavigationView/TopNavigationViewDataProvider.h +++ b/dev/NavigationView/TopNavigationViewDataProvider.h @@ -13,8 +13,8 @@ enum class NavigationViewSplitVectorID Size = 4 }; -using SplitDataSourceT = typename SplitDataSourceBase; -using SplitVectorT = typename SplitVector; +using SplitDataSourceT = typename ::SplitDataSourceBase; +using SplitVectorT = typename ::SplitVector; class TopNavigationViewDataProvider: public SplitDataSourceT { diff --git a/dev/NumberBox/NumberBoxParser.cpp b/dev/NumberBox/NumberBoxParser.cpp index 9158e28b1b..d2131b6fef 100644 --- a/dev/NumberBox/NumberBoxParser.cpp +++ b/dev/NumberBox/NumberBoxParser.cpp @@ -6,6 +6,8 @@ #include "NumberBoxParser.h" #include "Utils.h" +#pragma warning(disable: 26478) // Don't use std::move on constant variables. (es.56). + static constexpr wstring_view c_numberBoxOperators{ L"+-*/^"sv }; // Returns list of MathTokens from expression input string. If there are any parsing errors, it returns an empty vector. diff --git a/dev/ProgressBar/ProgressBar.cpp b/dev/ProgressBar/ProgressBar.cpp index fd6d9d240c..85e910721c 100644 --- a/dev/ProgressBar/ProgressBar.cpp +++ b/dev/ProgressBar/ProgressBar.cpp @@ -8,6 +8,8 @@ #include "RuntimeProfiler.h" #include "ResourceAccessor.h" +#pragma warning(disable: 26478) // Don't use std::move on constant variables. (es.56). + ProgressBar::ProgressBar() { __RP_Marker_ClassById(RuntimeProfiler::ProfId_ProgressBar); diff --git a/dev/ProgressRing/ProgressRing.cpp b/dev/ProgressRing/ProgressRing.cpp index 3b732957af..9c2332d06e 100644 --- a/dev/ProgressRing/ProgressRing.cpp +++ b/dev/ProgressRing/ProgressRing.cpp @@ -9,6 +9,8 @@ #include "ResourceAccessor.h" #include "math.h" +#pragma warning(disable: 26478) // Don't use std::move on constant variables. (es.56). + static constexpr wstring_view s_LayoutRootName{ L"LayoutRoot"sv }; static constexpr wstring_view s_LottiePlayerName{ L"LottiePlayer"sv }; static constexpr wstring_view s_DefaultForegroundThemeResourceName{ L"SystemControlHighlightAccentBrush"sv }; diff --git a/dev/TeachingTip/TeachingTip.cpp b/dev/TeachingTip/TeachingTip.cpp index 4b0d533a23..86fe0d5f9b 100644 --- a/dev/TeachingTip/TeachingTip.cpp +++ b/dev/TeachingTip/TeachingTip.cpp @@ -13,6 +13,8 @@ #include "../ResourceHelper/Utils.h" #include +#pragma warning(disable: 26478) // Don't use std::move on constant variables. (es.56). + static constexpr auto c_TitleTextBlockVisibleStateName = L"ShowTitleTextBlock"sv; static constexpr auto c_TitleTextBlockCollapsedStateName = L"CollapseTitleTextBlock"sv; static constexpr auto c_SubtitleTextBlockVisibleStateName = L"ShowSubtitleTextBlock"sv; diff --git a/dev/TreeView/TreeViewItem.cpp b/dev/TreeView/TreeViewItem.cpp index bcd3295f3a..05e8a47cc3 100644 --- a/dev/TreeView/TreeViewItem.cpp +++ b/dev/TreeView/TreeViewItem.cpp @@ -8,6 +8,8 @@ #include "TreeViewList.h" #include "TreeViewItemTemplateSettings.h" +#pragma warning(disable: 26813) // Use 'bitwise and' to check if a flag is set. + TreeViewItem::TreeViewItem() { SetDefaultStyleKey(this); diff --git a/dev/TreeView/TreeViewList.cpp b/dev/TreeView/TreeViewList.cpp index 7e4752acec..eb6e4b6c56 100644 --- a/dev/TreeView/TreeViewList.cpp +++ b/dev/TreeView/TreeViewList.cpp @@ -11,6 +11,8 @@ #include "TreeViewList.properties.cpp" #include "DispatcherHelper.h" +#pragma warning(disable: 26813) // Use 'bitwise and' to check if a flag is set. + TreeViewList::TreeViewList() { ListViewModel(winrt::make_self()); diff --git a/dev/TreeView/ViewModel.h b/dev/TreeView/ViewModel.h index a07319d6c4..f71b75ce7d 100644 --- a/dev/TreeView/ViewModel.h +++ b/dev/TreeView/ViewModel.h @@ -6,7 +6,7 @@ #include "TreeViewNode.h" using TreeNodeSelectionState = TreeViewNode::TreeNodeSelectionState; -using ViewModelVectorOptions = typename VectorOptionsFromFlag()>; +using ViewModelVectorOptions = typename ::VectorOptionsFromFlag()>; class ViewModel : public ReferenceTracker<