Skip to content

Commit

Permalink
Fix Arm exclusive build breaks. (#2858)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenLPeters authored Jul 8, 2020
1 parent a33c9f9 commit 45e6a3f
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dev/Repeater/FlowLayoutAlgorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ winrt::Size FlowLayoutAlgorithm::MeasureElement(
{
const auto measureSize = m_algorithmCallbacks->Algorithm_GetMeasureSize(index, availableSize, context);
element.Measure(measureSize);
auto provisionalArrangeSize = m_algorithmCallbacks->Algorithm_GetProvisionalArrangeSize(index, measureSize, element.DesiredSize(), context);
const auto provisionalArrangeSize = m_algorithmCallbacks->Algorithm_GetProvisionalArrangeSize(index, measureSize, element.DesiredSize(), context);
m_algorithmCallbacks->Algorithm_OnElementMeasured(element, index, availableSize, measureSize, element.DesiredSize(), provisionalArrangeSize, context);

return provisionalArrangeSize;
Expand Down Expand Up @@ -503,7 +503,7 @@ winrt::Rect FlowLayoutAlgorithm::EstimateExtent(const winrt::Size& availableSize
lastBounds = m_elementManager.GetLayoutBoundsForRealizedIndex(last);
}

winrt::Rect extent = m_algorithmCallbacks->Algorithm_GetExtent(
const winrt::Rect extent = m_algorithmCallbacks->Algorithm_GetExtent(
availableSize,
m_context.get(),
firstRealizedElement,
Expand Down
2 changes: 1 addition & 1 deletion dev/Repeater/ItemsRepeaterScrollHost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ winrt::Size ItemsRepeaterScrollHost::MeasureOverride(winrt::Size const& availabl

winrt::Size ItemsRepeaterScrollHost::ArrangeOverride(winrt::Size const& finalSize)
{
winrt::Size result = finalSize;
const winrt::Size result = finalSize;
if (auto scrollViewer = ScrollViewer())
{
if (SharedHelpers::IsRS5OrHigher())
Expand Down
2 changes: 1 addition & 1 deletion dev/Repeater/UniformGridLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ winrt::Rect UniformGridLayout::GetLayoutRectForDataIndex(
const int indexInRow = index - (rowIndex * itemsPerLine);

auto gridState = GetAsGridState(context.LayoutState());
winrt::Rect bounds = MinorMajorRect(
const winrt::Rect bounds = MinorMajorRect(
indexInRow * GetMinorSizeWithSpacing(context) + MinorStart(lastExtent),
rowIndex * GetMajorSizeWithSpacing(context) + MajorStart(lastExtent),
GetScrollOrientation() == ScrollOrientation::Vertical ? static_cast<float>(gridState->EffectiveItemWidth()) : static_cast<float>(gridState->EffectiveItemHeight()),
Expand Down
2 changes: 1 addition & 1 deletion dev/ScrollPresenter/ScrollPresenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ winrt::Size ScrollPresenter::ArrangeOverride(winrt::Size const& finalSize)
// No matter the ScrollPresenter's alignment, it does not grow larger than finalSize. viewport is finalSize again.
// 3. m_availableSize <= finalSize, the ScrollPresenter is constrained and its Content is larger than or equal to
// the available size. viewport is the smaller & constrained m_availableSize.
winrt::Size viewport =
const winrt::Size viewport =
{
std::min(finalSize.Width, m_availableSize.Width),
std::min(finalSize.Height, m_availableSize.Height)
Expand Down
2 changes: 1 addition & 1 deletion dev/ScrollPresenter/ScrollPresenterAnchoring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ winrt::Size ScrollPresenter::ComputeViewportToElementAnchorPointsDistance(
MUX_ASSERT(isnan(viewportAnchorPointVerticalOffset) == isnan(elementAnchorPointVerticalOffset));

// Rounding the distance to 6 precision digits to avoid layout cycles due to float/double conversions.
winrt::Size viewportToElementAnchorPointsDistance = winrt::Size{
const winrt::Size viewportToElementAnchorPointsDistance = winrt::Size{
isnan(viewportAnchorPointHorizontalOffset) ?
FloatUtil::NaN : static_cast<float>(round((elementAnchorPointHorizontalOffset - viewportAnchorPointHorizontalOffset) * 1000000) / 1000000),
isnan(viewportAnchorPointVerticalOffset) ?
Expand Down
2 changes: 1 addition & 1 deletion dev/ScrollPresenter/ScrollPresenterPrivate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ winrt::Rect ScrollPresenter::GetRelativeViewport(

ComputeMinMaxPositions(m_zoomFactor, &minPosition, nullptr);

winrt::Rect result = { (minPosition.x - m_contentLayoutOffsetX + static_cast<float>(m_zoomedHorizontalOffset) - elementOffset.X) / m_zoomFactor,
const winrt::Rect result = { (minPosition.x - m_contentLayoutOffsetX + static_cast<float>(m_zoomedHorizontalOffset) - elementOffset.X) / m_zoomFactor,
(minPosition.y - m_contentLayoutOffsetY + static_cast<float>(m_zoomedVerticalOffset) - elementOffset.Y) / m_zoomFactor,
viewportWidth, viewportHeight };

Expand Down
2 changes: 1 addition & 1 deletion dev/TwoPaneView/DisplayRegionHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ winrt::Rect DisplayRegionHelper::WindowRect()
{
// Return the bounds of the simulated window
winrt::FrameworkElement window = DisplayRegionHelper::WindowElement().as<winrt::FrameworkElement>();
winrt::Rect rc = {
const winrt::Rect rc = {
0, 0,
(float)window.ActualWidth(),
(float)window.ActualHeight() };
Expand Down

0 comments on commit 45e6a3f

Please sign in to comment.