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:
parent
7f913246ea
commit
c61f569f19
|
@ -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.
|
||||||
|
|
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue