From d11d5bb4e56a343ec3ff01f11635493fcbbc975b Mon Sep 17 00:00:00 2001 From: Carsten Patzke <carsten.patzke@desy.de> Date: Tue, 31 Mar 2020 16:50:07 +0200 Subject: [PATCH] [asapo::fabric] Fixed invalid assignment --- common/cpp/src/asapo_fabric/fabric_factory_impl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/cpp/src/asapo_fabric/fabric_factory_impl.cpp b/common/cpp/src/asapo_fabric/fabric_factory_impl.cpp index 2f22f0a18..3ae10ed3b 100644 --- a/common/cpp/src/asapo_fabric/fabric_factory_impl.cpp +++ b/common/cpp/src/asapo_fabric/fabric_factory_impl.cpp @@ -32,11 +32,11 @@ FabricFactoryImpl::CreateAndBindServer(const AbstractLogger* logger, const std:: return nullptr; } - auto server = std::unique_ptr<FabricServerImpl>(new FabricServerImpl(logger)); + auto server = new FabricServerImpl(logger); server->InitAndStartServer(host, port, error); - return server; + return std::unique_ptr<FabricServer>(server); } std::unique_ptr<FabricClient> -- GitLab