summaryrefslogtreecommitdiff
path: root/src/RpcMethodFactory.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-07-04 21:44:09 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-07-04 21:44:09 +0900
commit0cdeaa817783bfd74fddbc84079812b0ce77dfe1 (patch)
tree088433ba37d5d8819146706eb64ff5a8b71fe840 /src/RpcMethodFactory.cc
parent107de5899779d4c2eecc86aaf74dc4cec8286293 (diff)
Return nullptr directly where std::shared_ptr is expected
The constructor of std::shared_ptr which takes nullptr is not explicit so we can return nullptr directly.
Diffstat (limited to 'src/RpcMethodFactory.cc')
-rw-r--r--src/RpcMethodFactory.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/RpcMethodFactory.cc b/src/RpcMethodFactory.cc
index 3e1d5353..845a7856 100644
--- a/src/RpcMethodFactory.cc
+++ b/src/RpcMethodFactory.cc
@@ -129,7 +129,7 @@ createMethod(const std::string& methodName)
} else if(methodName == SystemMulticallRpcMethod::getMethodName()) {
return std::shared_ptr<RpcMethod>(new SystemMulticallRpcMethod());
} else {
- return std::shared_ptr<RpcMethod>();
+ return nullptr;
}
}
} // namespace