summaryrefslogtreecommitdiff
path: root/src/FileEntry.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-28 16:52:02 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-28 16:52:02 +0900
commit947967fc631f885dae3726a80de3a85084fbca81 (patch)
treed2cab447a42fe1728b470a664bf652ab4e9a54a3 /src/FileEntry.cc
parent13e3cf2573a6d3053674563c26cbbeac8ae42f36 (diff)
Renamed DownloadErrorCode.h as error_code.h. Renamed
downloaderrorcode::Value as error_code::Value.
Diffstat (limited to 'src/FileEntry.cc')
-rw-r--r--src/FileEntry.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/FileEntry.cc b/src/FileEntry.cc
index 767d65da..9fe560e9 100644
--- a/src/FileEntry.cc
+++ b/src/FileEntry.cc
@@ -284,7 +284,7 @@ void FileEntry::removeIdenticalURI(const std::string& uri)
uris_.erase(std::remove(uris_.begin(), uris_.end(), uri), uris_.end());
}
-void FileEntry::addURIResult(std::string uri, downloadresultcode::RESULT result)
+void FileEntry::addURIResult(std::string uri, error_code::Value result)
{
uriResults_.push_back(URIResult(uri, result));
}
@@ -292,9 +292,9 @@ void FileEntry::addURIResult(std::string uri, downloadresultcode::RESULT result)
namespace {
class FindURIResultByResult {
private:
- downloadresultcode::RESULT r_;
+ error_code::Value r_;
public:
- FindURIResultByResult(downloadresultcode::RESULT r):r_(r) {}
+ FindURIResultByResult(error_code::Value r):r_(r) {}
bool operator()(const URIResult& uriResult) const
{
@@ -304,7 +304,7 @@ public:
} // namespace
void FileEntry::extractURIResult
-(std::deque<URIResult>& res, downloadresultcode::RESULT r)
+(std::deque<URIResult>& res, error_code::Value r)
{
std::deque<URIResult>::iterator i =
std::stable_partition(uriResults_.begin(), uriResults_.end(),