From ffa8dc8bd20b360732c92b4bd9e772c0bfdbb3c7 Mon Sep 17 00:00:00 2001 From: Juanjo Alvarez Date: Fri, 22 Aug 2014 22:06:59 +0200 Subject: [PATCH] fixed dom.d .dup calls for dmd 2.0.66 --- dom.d | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/dom.d b/dom.d index 3ac7217..92e28a8 100644 --- a/dom.d +++ b/dom.d @@ -51,6 +51,7 @@ else { 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 @@ -1601,7 +1602,7 @@ class Element { } } - auto ret = e.children.dup; + auto ret = std.container.dup(e.children); e.children.length = 0; return ret; @@ -1837,7 +1838,7 @@ class Element { assert(r.parentNode is null); } body { - Element[] oldChildren = children.dup; + Element[] oldChildren = std.container.dup(children); foreach(c; oldChildren) 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