diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-04 00:39:11 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-04 00:39:11 +0900 |
| commit | 57f1902ee1fd24e2fa94a5e5c0ee357335366d7d (patch) | |
| tree | e3d944409286cca7fad799f7ff089378539defe0 /src/HttpSkipResponseCommand.cc | |
| parent | cb205a207ce6c2f4e01247e2270e2fe687062a23 (diff) | |
Use std::unique_ptr for StreamFilter instead of std::shared_ptr
Diffstat (limited to 'src/HttpSkipResponseCommand.cc')
| -rw-r--r-- | src/HttpSkipResponseCommand.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/HttpSkipResponseCommand.cc b/src/HttpSkipResponseCommand.cc index 6cfa9706..f8641101 100644 --- a/src/HttpSkipResponseCommand.cc +++ b/src/HttpSkipResponseCommand.cc @@ -87,13 +87,13 @@ HttpSkipResponseCommand::HttpSkipResponseCommand HttpSkipResponseCommand::~HttpSkipResponseCommand() {} void HttpSkipResponseCommand::installStreamFilter -(const std::shared_ptr<StreamFilter>& streamFilter) +(std::unique_ptr<StreamFilter> streamFilter) { if(!streamFilter) { return; } - streamFilter->installDelegate(streamFilter_); - streamFilter_ = streamFilter; + streamFilter->installDelegate(std::move(streamFilter_)); + streamFilter_ = std::move(streamFilter); const std::string& name = streamFilter_->getName(); sinkFilterOnly_ = util::endsWith(name, SinkStreamFilter::NAME); } |
