#ttp 331268 - SLATE: Replace instances of DragDrop::IsTypeMatch with FDragDropEvent::GetOperationAs()

#summary  Replaced instances of DragDrop::IsTypeMatch with FDragDropEvent::GetOperationAs()
#note Please change any instances of DragDrop::IsTypeMatch for the templated FDragDropEvent::GetOperationAs<>() or FDragDropOperation::IsOfType<>() where necessary
#proj Editor
#branch UE4
#reviewedby Nick.Atamas

[CL 2042222 by Andrew Rodham in Main branch]
This commit is contained in:
Andrew Rodham
2014-04-23 18:00:50 -04:00
committed by UnrealBot
parent f2e2744c1a
commit 07b90d1da2
45 changed files with 504 additions and 433 deletions
@@ -436,10 +436,9 @@ FReply SSymbolDebugger::OnDragOver(const FGeometry& MyGeometry, const FDragDropE
{
if (GetSymbolDebuggerAction() == DebugAction_None)
{
if (DragDrop::IsTypeMatch<FExternalDragOperation>(DragDropEvent.GetOperation()))
TSharedPtr<FExternalDragOperation> DragDropOp = DragDropEvent.GetOperationAs<FExternalDragOperation>();
if (DragDropOp.IsValid())
{
TSharedPtr<FExternalDragOperation> DragDropOp = StaticCastSharedPtr<FExternalDragOperation>(DragDropEvent.GetOperation());
if (DragDropOp->HasFiles())
{
if (DragDropOp->GetFiles().Num() == 1)
@@ -458,9 +457,9 @@ FReply SSymbolDebugger::OnDrop(const FGeometry& MyGeometry, const FDragDropEvent
if (GetSymbolDebuggerAction() == DebugAction_None)
{
// Handle drag drop for import
if (DragDrop::IsTypeMatch<FExternalDragOperation>(DragDropEvent.GetOperation()))
TSharedPtr<FExternalDragOperation> DragDropOp = DragDropEvent.GetOperationAs<FExternalDragOperation>();
if (DragDropOp.IsValid())
{
TSharedPtr<FExternalDragOperation> DragDropOp = StaticCastSharedPtr<FExternalDragOperation>(DragDropEvent.GetOperation());
if (DragDropOp->HasFiles())
{
// Set the current method to CrashDump as that is the only thing we support dropping for