Files
UnrealEngineUWP/Engine/Source/Editor/LocalizationDashboard/Private/TargetsTableEntry.h
henrik karlsson b5164ac775 Fixes to make modules compile with IWYU. We've added to IWYU toolchain so it compiles "orphaned" headers which does not have a owning cpp file. This identified lots of headers that couldn't be compiled by themselves (or if they were to included first)
Change consist of only forward declaration and additional includes

#preflight 63789c1de30d438849c48188
#rb none

[CL 23218412 by henrik karlsson in ue5-main branch]
2022-11-21 03:22:23 -05:00

32 lines
824 B
C

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "LocalizationTargetTypes.h"
#include "PropertyHandle.h"
struct FTargetsTableEntry
{
TSharedPtr<IPropertyHandle> TargetObjectPropertyHandle;
int32 CultureIndex;
FTargetsTableEntry()
: CultureIndex(INDEX_NONE)
{}
FTargetsTableEntry(const TSharedPtr<IPropertyHandle>& InTargetObjectPropertyHandle, const int32 InCultureIndex = INDEX_NONE)
: TargetObjectPropertyHandle(InTargetObjectPropertyHandle)
, CultureIndex(InCultureIndex)
{}
ULocalizationTarget* GetTarget()
{
if (TargetObjectPropertyHandle.IsValid() && TargetObjectPropertyHandle->IsValidHandle())
{
UObject* Value = nullptr;
TargetObjectPropertyHandle->GetValue(Value);
return Cast<ULocalizationTarget>(Value);
}
return nullptr;
}
};