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 --- site/custom.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'site/custom.cpp') diff --git a/site/custom.cpp b/site/custom.cpp index 35d0d40..5d955a2 100644 --- a/site/custom.cpp +++ b/site/custom.cpp @@ -1,6 +1,7 @@ #include "icespider-routes-search.h" namespace MirrorSearch { + using namespace std::literals; // Implementation classes. // Route name: download @@ -19,13 +20,13 @@ namespace MirrorSearch { auto _p_filename(request->getURLParam<::std::string>(_pi_filename)); auto _responseModel = prx0->feelingLucky(_p_filename, request->getContext()); if (_responseModel) { - request->responseRedirect(*_responseModel, "Mirror found"); + request->responseRedirect(*_responseModel, "Mirror found"s); } request->response(404, "No mirror found"); } private: - const MirrorSearch::SearchPrx prx0; + const MirrorSearch::SearchPrxPtr prx0; const unsigned int _pi_filename; }; -- cgit v1.2.3