fixed dom.d .dup calls for dmd 2.0.66

This commit is contained in:
Juanjo Alvarez 2014-08-22 22:06:59 +02:00
parent bf191b2242
commit ffa8dc8bd2
1 changed files with 3 additions and 7 deletions

10
dom.d
View File

@ -51,6 +51,7 @@ else {
import std.string; import std.string;
import std.container;
// the reason this is separated is so I can plug it into D->JS as well, which uses a different base Element class // the reason this is separated is so I can plug it into D->JS as well, which uses a different base Element class
@ -1601,7 +1602,7 @@ class Element {
} }
} }
auto ret = e.children.dup; auto ret = std.container.dup(e.children);
e.children.length = 0; e.children.length = 0;
return ret; return ret;
@ -1837,7 +1838,7 @@ class Element {
assert(r.parentNode is null); assert(r.parentNode is null);
} }
body { body {
Element[] oldChildren = children.dup; Element[] oldChildren = std.container.dup(children);
foreach(c; oldChildren) foreach(c; oldChildren)
c.parentNode = null; c.parentNode = null;
@ -6044,11 +6045,6 @@ class Utf8Stream {
+/ +/
} }
void fillForm(T)(Form form, T obj, string name) {
import arsd.database;
fillData((k, v) => form.setValue(k, v), obj, name);
}
/* /*
Copyright: Adam D. Ruppe, 2010 - 2013 Copyright: Adam D. Ruppe, 2010 - 2013