diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-02-08 15:53:45 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-02-08 15:53:45 +0000 |
| commit | 1b7c1982896dba1d38e1fe84ba9660996607f5f9 (patch) | |
| tree | d12047cb37ded1e18d4d5b97844412538beb19ff /src/FileEntry.cc | |
| parent | d82e183d346375ac8a58a298a58728be615f947e (diff) | |
2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Removed "using namespace std;" from all sources. Appended std::
prefix to c++
standard classes.
Included string.h where mem* function are used.
Diffstat (limited to 'src/FileEntry.cc')
| -rw-r--r-- | src/FileEntry.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/FileEntry.cc b/src/FileEntry.cc index c5b1108f..ef47b94f 100644 --- a/src/FileEntry.cc +++ b/src/FileEntry.cc @@ -35,18 +35,19 @@ #include "FileEntry.h" #include "File.h" #include "Util.h" -#include <libgen.h> -FileEntry::FileEntry(const string& path, +namespace aria2 { + +FileEntry::FileEntry(const std::string& path, int64_t length, int64_t offset, - const Strings& uris): + const std::deque<std::string>& uris): path(path), _uris(uris), length(length), offset(offset), extracted(false), requested(true) {} FileEntry::~FileEntry() {} -void FileEntry::setupDir(const string& parentDir) +void FileEntry::setupDir(const std::string& parentDir) { Util::mkdirs(File(parentDir+"/"+path).getDirname()); } @@ -67,3 +68,5 @@ bool FileEntry::operator<(const FileEntry& fileEntry) const { return offset < fileEntry.offset; } + +} // namespace aria2 |
