mirror of https://github.com/aria2/aria2
FileEntry: Use implicitly-declared copy constructor
parent
6fb0fe2196
commit
879e4a89b6
|
@ -90,17 +90,6 @@ FileEntry::FileEntry()
|
|||
|
||||
FileEntry::~FileEntry() = default;
|
||||
|
||||
FileEntry& FileEntry::operator=(const FileEntry& entry)
|
||||
{
|
||||
if (this != &entry) {
|
||||
path_ = entry.path_;
|
||||
length_ = entry.length_;
|
||||
offset_ = entry.offset_;
|
||||
requested_ = entry.requested_;
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool FileEntry::operator<(const FileEntry& fileEntry) const
|
||||
{
|
||||
return offset_ < fileEntry.offset_;
|
||||
|
|
|
@ -111,8 +111,6 @@ public:
|
|||
|
||||
~FileEntry();
|
||||
|
||||
FileEntry& operator=(const FileEntry& entry);
|
||||
|
||||
std::string getBasename() const;
|
||||
|
||||
std::string getDirname() const;
|
||||
|
|
Loading…
Reference in New Issue