From e0e9082615ebf3f03b1bc0ae95768a289afc553a Mon Sep 17 00:00:00 2001 From: Ferdinand Majerech Date: Tue, 17 Dec 2013 15:17:42 +0100 Subject: [PATCH] Loader ctors no longer pure (DMD 2.054) --- source/dyaml/loader.d | 4 ++-- source/dyaml/node.d | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/source/dyaml/loader.d b/source/dyaml/loader.d index 3a6ce8f..f3b6d97 100644 --- a/source/dyaml/loader.d +++ b/source/dyaml/loader.d @@ -115,7 +115,7 @@ struct Loader * * Throws: YAMLException if the file could not be opened or read. */ - this(string filename) pure @safe + this(string filename) @trusted { name_ = filename; try{this(new File(filename));} @@ -147,7 +147,7 @@ struct Loader * * Throws: YAMLException if stream could not be read. */ - this(Stream stream) pure @safe + this(Stream stream) @safe { try { diff --git a/source/dyaml/node.d b/source/dyaml/node.d index 82a7e43..cb790f4 100644 --- a/source/dyaml/node.d +++ b/source/dyaml/node.d @@ -121,7 +121,6 @@ package class YAMLContainer(T) if (!Node.allowed!T): YAMLObject this(T value) @trusted {value_ = value;} } - /** * YAML node. *