summaryrefslogtreecommitdiff
path: root/src/RpcMethod.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-22 01:10:38 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-22 01:10:38 +0900
commit07d270c87e6f9184aea4ca17eb26e466712e8db2 (patch)
tree2dfbaa2e0d2ad0f38cb73098608f7d67a64320f8 /src/RpcMethod.cc
parent126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff)
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/RpcMethod.cc')
-rw-r--r--src/RpcMethod.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/RpcMethod.cc b/src/RpcMethod.cc
index e61f9926..19467050 100644
--- a/src/RpcMethod.cc
+++ b/src/RpcMethod.cc
@@ -59,10 +59,10 @@ RpcMethod::RpcMethod()
RpcMethod::~RpcMethod() {}
-SharedHandle<ValueBase> RpcMethod::createErrorResponse
+std::shared_ptr<ValueBase> RpcMethod::createErrorResponse
(const Exception& e, const RpcRequest& req)
{
- SharedHandle<Dict> params = Dict::g();
+ std::shared_ptr<Dict> params = Dict::g();
params->put((req.jsonRpc ? "code" : "faultCode"), Integer::g(1));
params->put((req.jsonRpc ? "message" : "faultString"), std::string(e.what()));
return params;
@@ -85,7 +85,7 @@ void gatherOption
(InputIterator first, InputIterator last,
Pred pred,
Option* option,
- const SharedHandle<OptionParser>& optionParser)
+ const std::shared_ptr<OptionParser>& optionParser)
{
for(; first != last; ++first) {
const std::string& optionName = (*first).first;