4.20 fix (deprecation warning)

This commit is contained in:
monsieurgustav
2018-09-07 15:41:40 +02:00
parent 985c5dc7da
commit 52ac73f723
3 changed files with 5 additions and 13 deletions
+2 -12
View File
@@ -29,33 +29,23 @@ namespace UnrealBuildTool.Rules
}
);
PublicIncludePaths.AddRange(
new string[] {
"OSC/Public",
"OSC/Public/Common",
"OSC/Public/Receive",
"OSC/Public/Send",
}
);
PrivateIncludePaths.AddRange(
new string[] {
"OSC/Private",
"OSC/Private/Common",
"OSC/Private/Receive",
"OSC/Private/Send",
}
);
if (Target.Type == TargetRules.TargetType.Editor)
{
Definitions.Add("OSC_EDITOR_BUILD=1");
PublicDefinitions.Add("OSC_EDITOR_BUILD=1");
PrivateDependencyModuleNames.Add("UnrealEd");
}
else
{
Definitions.Add("OSC_EDITOR_BUILD=0");
PublicDefinitions.Add("OSC_EDITOR_BUILD=0");
}
}
}
+1 -1
View File
@@ -163,7 +163,7 @@ bool UOscSettings::Parse(const FString & ip_port, FIPv4Address * address, uint32
return false;
}
const auto ip = ip_port.Left(sep).Trim();
const auto ip = ip_port.Left(sep).TrimStartAndEnd();
if(!FIPv4Address::Parse(ip, addressResult))
{
return false;
+2
View File
@@ -62,9 +62,11 @@ public:
void ClearKeyInputs(UOscDispatcher & dispatcher);
void UpdateKeyInputs(UOscDispatcher & dispatcher);
#if WITH_EDITOR
void PostEditChangeProperty( struct FPropertyChangedEvent& PropertyChangedEvent) override;
#endif
public:
enum class ParseOption