convert the composer to a struct (#218)

convert the composer to a struct
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
This commit is contained in:
BBasile 2019-01-15 08:59:50 +01:00 committed by The Dlang Bot
parent 7f913246ea
commit c61f569f19
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ class ComposerException : MarkedYAMLException
} }
///Composes YAML documents from events provided by a Parser. ///Composes YAML documents from events provided by a Parser.
final class Composer struct Composer
{ {
private: private:
///Parser providing YAML events. ///Parser providing YAML events.

View file

@ -222,7 +222,7 @@ struct Loader
if (!rangeInitialized) if (!rangeInitialized)
{ {
lazyInitConstructorResolver(); lazyInitConstructorResolver();
composer = new Composer(parser_, resolver_); composer = Composer(parser_, resolver_);
rangeInitialized = true; rangeInitialized = true;
} }
assert(!done_, "Loader.popFront called on empty range"); assert(!done_, "Loader.popFront called on empty range");