diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-12 22:59:49 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-12 23:09:23 +0900 |
| commit | 41121e09f7cf6ed4a95797a80da63bca1d4884cd (patch) | |
| tree | b48e6a1c9603d92728652e7a4238f0d894a9aab0 /src/RequestGroupMan.cc | |
| parent | 59e63d956ee63d99202b67a32e8a277f3b04650d (diff) | |
Use std::unique_ptr for Metalink objects
Diffstat (limited to 'src/RequestGroupMan.cc')
| -rw-r--r-- | src/RequestGroupMan.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/RequestGroupMan.cc b/src/RequestGroupMan.cc index 933f3807..6cae6b34 100644 --- a/src/RequestGroupMan.cc +++ b/src/RequestGroupMan.cc @@ -257,8 +257,7 @@ private: void saveSignature(const std::shared_ptr<RequestGroup>& group) { - std::shared_ptr<Signature> sig = - group->getDownloadContext()->getSignature(); + auto& sig = group->getDownloadContext()->getSignature(); if(sig && !sig->getBody().empty()) { // filename of signature file is the path to download file followed by // ".sig". |
