Give FindOneWithInternalID the power to handle arrays of smart pointers.
Eliminate FindNoneWithInternalID, finish migration to FindNoDuplicateNames.
This commit is contained in:
@@ -274,12 +274,6 @@ FName WingUtils::GetFName(const FWingProperty &Prop)
|
||||
return Prop.Prop->GetFName();
|
||||
}
|
||||
|
||||
FName WingUtils::GetFName(const TSharedPtr<IPropertyHandle> &H)
|
||||
{
|
||||
return H->GetProperty()->GetFName();
|
||||
}
|
||||
|
||||
|
||||
// ============================================================
|
||||
// Formatting other things
|
||||
// ============================================================
|
||||
@@ -385,21 +379,6 @@ bool WingUtils::CheckExactlyOneNamed(int Count, const TCHAR *Kind, FName Name, W
|
||||
return CheckExactlyOneNamed(Count, Kind, ExternalizeID(Name), Errors);
|
||||
}
|
||||
|
||||
bool WingUtils::CheckExactlyNoneNamed(int Count, const TCHAR *Kind, const FString &Name, WingOut Errors)
|
||||
{
|
||||
if (Count > 0)
|
||||
{
|
||||
Errors.Printf(TEXT("A %s named %s already exists."), Kind, *Name);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool WingUtils::CheckExactlyNoneNamed(int Count, const TCHAR *Kind, FName Name, WingOut Errors)
|
||||
{
|
||||
return CheckExactlyNoneNamed(Count, Kind, ExternalizeID(Name), Errors);
|
||||
}
|
||||
|
||||
bool WingUtils::CheckCanRename(UEdGraphNode* Node, const FString &Name, WingOut Errors)
|
||||
{
|
||||
if (!Node->bCanRenameNode)
|
||||
|
||||
Reference in New Issue
Block a user