From f3e2dd7780bb90feff6b2f7a36797752a4933ff6 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 15 Apr 2018 13:41:38 +0100 Subject: C++17 and Ice 3.7 Updates all components to be C++17 and Ice 3.7 --- service/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'service/main.cpp') diff --git a/service/main.cpp b/service/main.cpp index 00563f4..c84b11b 100644 --- a/service/main.cpp +++ b/service/main.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include "apiImpl.h" @@ -21,7 +21,7 @@ namespace MirrorSearch { void addObjects(const std::string &, const Ice::CommunicatorPtr & ic, const Ice::StringSeq &, const Ice::ObjectAdapterPtr & adp) override { auto dbpool = getConnectionPool(ic, "postgresql", "MirrorSearch"); - adp->add(new SearchImpl(dbpool), ic->stringToIdentity("Search")); + adp->add(std::make_shared(dbpool), Ice::stringToIdentity("Search")); } }; -- cgit v1.2.3