diff orange/serialization/Serializer.d @ 46:d6fbd0b3586e

Issue 8: Wrong results for array of arrays. (Temporary fix).
author Jacob Carlborg <doob@me.com>
date Tue, 09 Aug 2011 11:38:50 +0200
parents 8b9409423740
children 9c9bbef6bf5e
line wrap: on
line diff
--- a/orange/serialization/Serializer.d	Tue Aug 09 10:13:29 2011 +0200
+++ b/orange/serialization/Serializer.d	Tue Aug 09 11:38:50 2011 +0200
@@ -551,7 +551,7 @@
 	private T deserializeArray (T) (string key)
 	{
 		auto slice = deserializeSlice(key);
-		
+
 		if (auto tmp = getDeserializedSlice!(T)(slice))
 			return *tmp;
 		
@@ -563,7 +563,7 @@
 			foreach (i, ref e ; value)
 				e = deserializeInternal!(typeof(e))(toData(i));
 		};
-		
+
 		if (slice.id != size_t.max)
 		{
 			archive.unarchiveArray(slice.id, dg);
@@ -578,7 +578,7 @@
 			
 			if (auto a = slice.id in deserializedSlices)
 				return cast(T) *a;
-			
+
 			addDeserializedSlice(value, slice.id);
 			
 			return value;