From 66741654c3324a01577176a7dd66e1500922959d Mon Sep 17 00:00:00 2001 From: Ferdinand Majerech Date: Wed, 23 Jul 2014 00:46:00 +0200 Subject: [PATCH] More pure nothrow @nogc. --- source/dyaml/reader.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/dyaml/reader.d b/source/dyaml/reader.d index 664fe54..99376cb 100644 --- a/source/dyaml/reader.d +++ b/source/dyaml/reader.d @@ -130,7 +130,7 @@ final class Reader /// // XXX removed; search for 'risky' to find why. // Throws: ReaderException if trying to read past the end of the buffer. - dchar peek(size_t index = 0) @safe pure const + dchar peek(size_t index = 0) @safe pure nothrow const @nogc { if(buffer_.length <= bufferOffset_ + index) { @@ -184,7 +184,7 @@ final class Reader /// /// Throws: ReaderException if trying to read past the end of the buffer /// or if invalid data is read. - dchar get() @safe pure + dchar get() @safe pure nothrow @nogc { const result = peek(); forward(); @@ -303,7 +303,7 @@ struct UTFDecoder /// Decode all data passed to the constructor. /// /// On error, getAndClearErrorMessage() will return a non-null string. - void decodeAll() @safe + void decodeAll() @safe pure nothrow { assert(decoded_ is null, "Calling decodeAll more than once");