summarylogtreecommitdiffstats
path: root/UnrealExporter-move.patch
blob: 41f32d642c911b86122e295fc244dd70df20dd90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- UnrealExporter.cpp	2018-10-13 13:38:00.979011618 -0500
+++ UnrealExporter_new.cpp	2018-10-13 23:49:58.100180446 -0500
@@ -865,7 +865,10 @@
 	Output.Logf(TEXT("Components for '%s':\r\n"), *Object->GetFullName());
 	ExportProperties(NULL, Output, Object->GetClass(), (uint8*)Object, 2, NULL, NULL, Object, PPF_SubobjectsOnly);
 	Output.Logf(TEXT("<--- DONE!\r\n"));
-	return Output;
+
+	typedef FStringOutputDevice &FStringOutputDeviceRef;
+	FStringOutputDeviceRef &&Output_ref = Output;
+	return (FStringOutputDevice&&)Output_ref; 
 }
 
 
@@ -885,5 +888,7 @@
 	const FExportObjectInnerContext Context;
 	UExporter::ExportToOutputDevice(&Context, Object, NULL, Archive, TEXT("copy"), 0, PPF_Copy | PPF_DebugDump, false);
 
-	return Archive;
+	typedef FStringOutputDevice &FStringOutputDeviceRef;
+	FStringOutputDeviceRef && Archive_ref = Archive;
+	return (FStringOutputDevice&&)Archive_ref;
 }