Skip to content

Commit

Permalink
Merged PR 9800050: Fix compiler errors for 2.8.6 patch
Browse files Browse the repository at this point in the history
fix compiler errors for 2.8.6 patch
  • Loading branch information
Dilip Ojha committed Oct 30, 2023
1 parent e8cdf25 commit 40f9baa
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 3 deletions.
2 changes: 2 additions & 0 deletions dev/AnimatedIcon/AnimatedIcon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include "Utils.h"
#include <mutex>

#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 };
Expand Down
3 changes: 3 additions & 0 deletions dev/Common/ColorConversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
{
}
Expand Down
4 changes: 2 additions & 2 deletions dev/NavigationView/TopNavigationViewDataProvider.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ enum class NavigationViewSplitVectorID
Size = 4
};

using SplitDataSourceT = typename SplitDataSourceBase<winrt::IInspectable, NavigationViewSplitVectorID, float>;
using SplitVectorT = typename SplitVector<winrt::IInspectable, NavigationViewSplitVectorID>;
using SplitDataSourceT = typename ::SplitDataSourceBase<winrt::IInspectable, NavigationViewSplitVectorID, float>;
using SplitVectorT = typename ::SplitVector<winrt::IInspectable, NavigationViewSplitVectorID>;

class TopNavigationViewDataProvider: public SplitDataSourceT
{
Expand Down
2 changes: 2 additions & 0 deletions dev/NumberBox/NumberBoxParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions dev/ProgressBar/ProgressBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions dev/ProgressRing/ProgressRing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
2 changes: 2 additions & 0 deletions dev/TeachingTip/TeachingTip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include "../ResourceHelper/Utils.h"
#include <enum_array.h>

#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;
Expand Down
2 changes: 2 additions & 0 deletions dev/TreeView/TreeViewItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions dev/TreeView/TreeViewList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<ViewModel>());
Expand Down
2 changes: 1 addition & 1 deletion dev/TreeView/ViewModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "TreeViewNode.h"

using TreeNodeSelectionState = TreeViewNode::TreeNodeSelectionState;
using ViewModelVectorOptions = typename VectorOptionsFromFlag<winrt::IInspectable, MakeVectorParam<VectorFlag::Observable, VectorFlag::DependencyObjectBase>()>;
using ViewModelVectorOptions = typename ::VectorOptionsFromFlag<winrt::IInspectable, MakeVectorParam<VectorFlag::Observable, VectorFlag::DependencyObjectBase>()>;

class ViewModel :
public ReferenceTracker<
Expand Down

0 comments on commit 40f9baa

Please sign in to comment.