From f59865ad4ade9d283fff92c9910f4fd39ca73ec9 Mon Sep 17 00:00:00 2001 From: Ryan Gerleve Date: Wed, 5 Aug 2015 11:23:56 -0400 Subject: [PATCH] Attempted fix for shadowed variable warning [CL 2644954 by Ryan Gerleve in Main branch] --- .../Private/BlueprintCompilerCppBackendUtils.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Engine/Source/Developer/BlueprintCompilerCppBackend/Private/BlueprintCompilerCppBackendUtils.cpp b/Engine/Source/Developer/BlueprintCompilerCppBackend/Private/BlueprintCompilerCppBackendUtils.cpp index 928276bcf597..1d130c2082e9 100644 --- a/Engine/Source/Developer/BlueprintCompilerCppBackend/Private/BlueprintCompilerCppBackendUtils.cpp +++ b/Engine/Source/Developer/BlueprintCompilerCppBackend/Private/BlueprintCompilerCppBackendUtils.cpp @@ -716,14 +716,14 @@ FString FEmitDefaultValueHelper::GenerateGetDefaultValue(const UUserDefinedStruc void FEmitDefaultValueHelper::InnerGenerate(const UProperty* Property, const uint8* ValuePtr, const FString& PathToMember, FString& OutResult) { - auto OneLineConstruction = [](const UProperty* Property, const uint8* LocalValuePtr, FString& OutResult) -> bool + auto OneLineConstruction = [](const UProperty* LocalProperty, const uint8* LocalValuePtr, FString& OutResult) -> bool { FString ValueStr; bool bComplete = true; - if (!HandleSpecialTypes(Property, LocalValuePtr, ValueStr)) + if (!HandleSpecialTypes(LocalProperty, LocalValuePtr, ValueStr)) { - auto StructProperty = Cast(Property); - Property->ExportTextItem(ValueStr, LocalValuePtr, LocalValuePtr, nullptr, EPropertyPortFlags::PPF_ExportCpp); + auto StructProperty = Cast(LocalProperty); + LocalProperty->ExportTextItem(ValueStr, LocalValuePtr, LocalValuePtr, nullptr, EPropertyPortFlags::PPF_ExportCpp); if (ValueStr.IsEmpty() && StructProperty) { check(StructProperty->Struct); @@ -732,7 +732,7 @@ void FEmitDefaultValueHelper::InnerGenerate(const UProperty* Property, const uin } if (ValueStr.IsEmpty()) { - UE_LOG(LogK2Compiler, Warning, TEXT("FEmitDefaultValueHelper Cannot generate initilization: %s"), *Property->GetPathName()); + UE_LOG(LogK2Compiler, Warning, TEXT("FEmitDefaultValueHelper Cannot generate initilization: %s"), *LocalProperty->GetPathName()); } } OutResult += ValueStr;