diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-22 17:37:30 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-22 17:37:30 +0900 |
| commit | e2340efe2788648a6edc49eaa236e1f62d96a937 (patch) | |
| tree | d182c828e80c0d63069160805ff7d023e512b02e /test/DefaultBtProgressInfoFileTest.cc | |
| parent | 0030025bb6989b130c7f609819669e0619519d64 (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 'test/DefaultBtProgressInfoFileTest.cc')
| -rw-r--r-- | test/DefaultBtProgressInfoFileTest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/DefaultBtProgressInfoFileTest.cc b/test/DefaultBtProgressInfoFileTest.cc index 6c87aa05..9d9b8afd 100644 --- a/test/DefaultBtProgressInfoFileTest.cc +++ b/test/DefaultBtProgressInfoFileTest.cc @@ -72,7 +72,7 @@ public: dctx_.reset(new DownloadContext()); SharedHandle<TorrentAttribute> torrentAttrs(new TorrentAttribute()); torrentAttrs->infoHash = std::string(vbegin(infoHash), vend(infoHash)); - dctx_->setAttribute(bittorrent::BITTORRENT, torrentAttrs); + dctx_->setAttribute(CTX_ATTR_BT, torrentAttrs); const SharedHandle<FileEntry> fileEntries[] = { SharedHandle<FileEntry>(new FileEntry("/path/to/file",totalLength,0)) }; |
