summaryrefslogtreecommitdiff
path: root/src/AdaptiveURISelector.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/AdaptiveURISelector.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/AdaptiveURISelector.cc')
-rw-r--r--src/AdaptiveURISelector.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AdaptiveURISelector.cc b/src/AdaptiveURISelector.cc
index 5ee353c6..549d7472 100644
--- a/src/AdaptiveURISelector.cc
+++ b/src/AdaptiveURISelector.cc
@@ -351,7 +351,7 @@ std::shared_ptr<ServerStat> AdaptiveURISelector::getServerStats
std::string protocol = uri::getFieldString(us, USR_SCHEME, uri.c_str());
return serverStatMan_->find(host, protocol);
} else {
- return std::shared_ptr<ServerStat>();
+ return nullptr;
}
}