diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-05-23 23:12:32 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-05-23 23:12:32 +0900 |
| commit | b0799b6e4627ca7ad483c49e04f17bd40c8feae0 (patch) | |
| tree | 179a13dc8bc9377bd8c7423905ffa827ef2403f4 /src/UriListParser.cc | |
| parent | 6c0fa43fa583ad41a31a0191de6783cb856da55b (diff) | |
Introduce IOFile abstract class to refactor BufferedFile and GZipFile
IOFile provides the same interface of old BufferedFile. It provides
extension points as pure virtual functions. Those functions are
implemented by 2 concrete subclasses: BufferedFile and GZipFile.
Diffstat (limited to 'src/UriListParser.cc')
| -rw-r--r-- | src/UriListParser.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/UriListParser.cc b/src/UriListParser.cc index 5af1a473..3261beb9 100644 --- a/src/UriListParser.cc +++ b/src/UriListParser.cc @@ -53,9 +53,9 @@ namespace aria2 { UriListParser::UriListParser(const std::string& filename) #if HAVE_ZLIB - : fp_(new GZipFile(filename.c_str(), BufferedFile::READ)) + : fp_(new GZipFile(filename.c_str(), IOFile::READ)) #else - : fp_(new BufferedFile(filename.c_str(), BufferedFile::READ)) + : fp_(new BufferedFile(filename.c_str(), IOFile::READ)) #endif {} |
