mirror of
https://github.com/YACReader/yacreader
synced 2025-07-21 06:24:39 -04:00
Added copy constructors and operator= to folder and comicdb, LibraryItem has to be a QObject, and QObject disables copy.
This commit is contained in:
@ -0,0 +1,19 @@
|
||||
|
||||
#include "folder.h"
|
||||
|
||||
Folder::Folder(const Folder &folder)
|
||||
{
|
||||
operator=(folder);
|
||||
}
|
||||
|
||||
Folder &Folder::operator =(const Folder &other)
|
||||
{
|
||||
LibraryItem::operator =(other);
|
||||
|
||||
this->knownParent = other.knownParent;
|
||||
this->knownId = other.knownId;
|
||||
this->finished = other.finished;
|
||||
this->completed = other.completed;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user