From b2ba58545c0ec4f19ac00a6e500f79287eeebafa Mon Sep 17 00:00:00 2001 From: Patrick Boutot Date: Tue, 25 May 2021 12:35:31 -0400 Subject: [PATCH] Fix build with "error C4458: declaration of 'Slot' hides class member" #rb none #rnx [CL 16451220 by Patrick Boutot in ue5-main branch] --- Engine/Source/Runtime/SlateCore/Public/Layout/Children.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Engine/Source/Runtime/SlateCore/Public/Layout/Children.h b/Engine/Source/Runtime/SlateCore/Public/Layout/Children.h index 94806470b06e..8cfc2767aca8 100644 --- a/Engine/Source/Runtime/SlateCore/Public/Layout/Children.h +++ b/Engine/Source/Runtime/SlateCore/Public/Layout/Children.h @@ -621,7 +621,7 @@ public: virtual ~FScopedWidgetSlotArguments() { - if (const SlotType* Slot = this->GetSlot()) // Is nullptr when the FScopedWidgetSlotArguments was moved-constructed. + if (const SlotType* SlotPtr = this->GetSlot()) // Is nullptr when the FScopedWidgetSlotArguments was moved-constructed. { if (Index == INDEX_NONE) { @@ -633,7 +633,7 @@ public: } if (Added) { - Added(Slot, Index); + Added(SlotPtr, Index); } } }