Skip to content

Commit

Permalink
Fixed JavaContainerBuilder::useCtpgParser
Browse files Browse the repository at this point in the history
  • Loading branch information
tomuben committed Oct 14, 2024
1 parent 8dc5834 commit f1b1940
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion exaudfclient/base/javacontainer/javacontainer_builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ JavaContainerBuilder::JavaContainerBuilder()
: m_parser() {}

JavaContainerBuilder& JavaContainerBuilder::useCtpgParser(const bool useCtpgParser) {
m_parser = std::make_unique<JavaScriptOptions::ScriptOptionLinesParserCTPG>(std::make_unique<SwigFactoryImpl>());
if (useCtpgParser) {
m_parser = std::make_unique<JavaScriptOptions::ScriptOptionLinesParserCTPG>(std::make_unique<SwigFactoryImpl>());
}
return *this;
}

Expand Down

0 comments on commit f1b1940

Please sign in to comment.