summaryrefslogtreecommitdiff
path: root/src/DefaultPieceStorage.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-09-22 17:37:30 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-09-22 17:37:30 +0900
commite2340efe2788648a6edc49eaa236e1f62d96a937 (patch)
treed182c828e80c0d63069160805ff7d023e512b02e /src/DefaultPieceStorage.cc
parent0030025bb6989b130c7f609819669e0619519d64 (diff)
Use std::vector instead of std::map for ContextAttribute objects
Now key for ContextAttribute object store is int instead of string.
Diffstat (limited to 'src/DefaultPieceStorage.cc')
-rw-r--r--src/DefaultPieceStorage.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DefaultPieceStorage.cc b/src/DefaultPieceStorage.cc
index 9dcb154b..a59a20a1 100644
--- a/src/DefaultPieceStorage.cc
+++ b/src/DefaultPieceStorage.cc
@@ -465,7 +465,7 @@ void DefaultPieceStorage::completePiece(const SharedHandle<Piece>& piece)
A2_LOG_INFO(MSG_DOWNLOAD_COMPLETED);
}
#ifdef ENABLE_BITTORRENT
- if(downloadContext_->hasAttribute(bittorrent::BITTORRENT)) {
+ if(downloadContext_->hasAttribute(CTX_ATTR_BT)) {
SharedHandle<TorrentAttribute> torrentAttrs =
bittorrent::getTorrentAttrs(downloadContext_);
if(!torrentAttrs->metadata.empty()) {