diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-14 07:17:55 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-14 07:17:55 +0000 |
| commit | 1372ac51ade17bc27126449bf29f99c6c2cf7703 (patch) | |
| tree | 974a54b86b20555c8822f651c7b3a53c0a072df3 /src/File.cc | |
| parent | 93e5dbed325f29c1bf867a2847d3b839d545cfb2 (diff) | |
2010-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added .cc file for classes/structs that only provided by header
file. Defined non-POD classes' ctor, dtor in .cc file. Moved
implementation code in header file to .cc file for major
classes/strucsts.
Diffstat (limited to 'src/File.cc')
| -rw-r--r-- | src/File.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/File.cc b/src/File.cc index 6a522589..3c0dc294 100644 --- a/src/File.cc +++ b/src/File.cc @@ -54,10 +54,20 @@ namespace aria2 { # include <windows.h> #endif // __MINGW32__ -File::File(const std::string& name):name_(name) {} +File::File(const std::string& name) : name_(name) {} + +File::File(const File& c) : name_(c.name_) {} File::~File() {} +File& File::operator=(const File& c) +{ + if(this != &c) { + name_ = c.name_; + } + return *this; +} + int File::fillStat(a2_struct_stat& fstat) { return a2stat(name_.c_str(), &fstat); } |
