This commit is contained in:
Ferdinand Majerech 2014-07-25 18:26:23 +02:00
parent 93a99ad7ca
commit 1b5eea58bf

View file

@ -33,7 +33,6 @@ import dyaml.reader;
import dyaml.style; import dyaml.style;
import dyaml.token; import dyaml.token;
package: package:
/** /**
* Scanner produces tokens of the following types: * Scanner produces tokens of the following types:
@ -168,16 +167,16 @@ final class Scanner
char[256] msgBuffer_; char[256] msgBuffer_;
public: public:
///Construct a Scanner using specified Reader. /// Construct a Scanner using specified Reader.
this(Reader reader) @safe nothrow this(Reader reader) @safe nothrow
{ {
//Return the next token, but do not delete it from the queue // Return the next token, but do not delete it from the queue
reader_ = reader; reader_ = reader;
appender_ = appender!(dchar[])(); appender_ = appender!(dchar[])();
fetchStreamStart(); fetchStreamStart();
} }
///Destroy the scanner. /// Destroy the scanner.
@trusted ~this() @trusted ~this()
{ {
tokens_.destroy(); tokens_.destroy();