From f1b1940d3ea562e0197943f39c7eb3d9a9758300 Mon Sep 17 00:00:00 2001 From: Thomas Ubensee <34603111+tomuben@users.noreply.github.com> Date: Mon, 14 Oct 2024 15:34:00 -0300 Subject: [PATCH] Fixed JavaContainerBuilder::useCtpgParser --- exaudfclient/base/javacontainer/javacontainer_builder.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exaudfclient/base/javacontainer/javacontainer_builder.cc b/exaudfclient/base/javacontainer/javacontainer_builder.cc index c1535e57..9b27a326 100644 --- a/exaudfclient/base/javacontainer/javacontainer_builder.cc +++ b/exaudfclient/base/javacontainer/javacontainer_builder.cc @@ -12,7 +12,9 @@ JavaContainerBuilder::JavaContainerBuilder() : m_parser() {} JavaContainerBuilder& JavaContainerBuilder::useCtpgParser(const bool useCtpgParser) { - m_parser = std::make_unique(std::make_unique()); + if (useCtpgParser) { + m_parser = std::make_unique(std::make_unique()); + } return *this; }