summaryrefslogtreecommitdiff
path: root/site/custom.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 /site/custom.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 'site/custom.cpp')
-rw-r--r--site/custom.cpp5
1 files changed, 3 insertions, 2 deletions
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;
};