summaryrefslogtreecommitdiff
path: root/src/FileEntry.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/FileEntry.h')
-rw-r--r--src/FileEntry.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/FileEntry.h b/src/FileEntry.h
index b395ce84..af475ab9 100644
--- a/src/FileEntry.h
+++ b/src/FileEntry.h
@@ -50,20 +50,10 @@ public:
FileEntry(const string& path, int64_t length, int64_t offset);
- FileEntry& operator=(const FileEntry& entry)
- {
- if(this != &entry) {
- path = entry.path;
- length = entry.length;
- offset = entry.offset;
- extracted = entry.extracted;
- requested = entry.requested;
- }
- return *this;
- }
-
~FileEntry();
+ FileEntry& operator=(const FileEntry& entry);
+
string getBasename() const
{
return File(path).getBasename();