summaryrefslogtreecommitdiff
path: root/site/custom.cpp
diff options
context:
space:
mode:
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;
};