summaryrefslogtreecommitdiff
path: root/service/main.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-04-15 13:41:38 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2018-04-15 13:41:38 +0100
commitf3e2dd7780bb90feff6b2f7a36797752a4933ff6 (patch)
tree70b494839b379ab96cae33b01ae9ef6c1e893340 /service/main.cpp
parentAdd a redirect to work as a Gentoo mirror (diff)
downloadmirrorsearch-f3e2dd7780bb90feff6b2f7a36797752a4933ff6.tar.bz2
mirrorsearch-f3e2dd7780bb90feff6b2f7a36797752a4933ff6.tar.xz
mirrorsearch-f3e2dd7780bb90feff6b2f7a36797752a4933ff6.zip
C++17 and Ice 3.7
Updates all components to be C++17 and Ice 3.7
Diffstat (limited to 'service/main.cpp')
-rw-r--r--service/main.cpp4
1 files changed, 2 insertions, 2 deletions
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 <Ice/Communicator.h>
+#include <Ice/Initialize.h>
#include <Ice/ObjectAdapter.h>
#include <icetrayService.h>
#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<SearchImpl>(dbpool), Ice::stringToIdentity("Search"));
}
};