mirror of
https://github.com/YACReader/yacreader
synced 2025-07-17 20:44:32 -04:00
Format code using clang-format
This commit is contained in:
@ -1,31 +1,31 @@
|
||||
#include "folder.h"
|
||||
|
||||
Folder::Folder()
|
||||
:knownParent(false),
|
||||
knownId(false),
|
||||
numChildren(-1)
|
||||
{}
|
||||
|
||||
Folder::Folder(qulonglong folderId, qulonglong parentId, const QString &folderName, const QString &folderPath)
|
||||
:knownParent(true),
|
||||
knownId(true),
|
||||
numChildren(-1)
|
||||
: knownParent(false),
|
||||
knownId(false),
|
||||
numChildren(-1)
|
||||
{
|
||||
this->id = folderId;
|
||||
this->parentId = parentId;
|
||||
this->name = folderName;
|
||||
this->path = folderPath;
|
||||
}
|
||||
|
||||
Folder::Folder(qulonglong folderId, qulonglong parentId, const QString &folderName, const QString &folderPath)
|
||||
: knownParent(true),
|
||||
knownId(true),
|
||||
numChildren(-1)
|
||||
{
|
||||
this->id = folderId;
|
||||
this->parentId = parentId;
|
||||
this->name = folderName;
|
||||
this->path = folderPath;
|
||||
}
|
||||
|
||||
Folder::Folder(const Folder &folder)
|
||||
{
|
||||
operator=(folder);
|
||||
}
|
||||
|
||||
Folder &Folder::operator =(const Folder &other)
|
||||
Folder &Folder::operator=(const Folder &other)
|
||||
{
|
||||
LibraryItem::operator =(other);
|
||||
LibraryItem::operator=(other);
|
||||
|
||||
this->knownParent = other.knownParent;
|
||||
this->knownId = other.knownId;
|
||||
@ -34,10 +34,10 @@ Folder &Folder::operator =(const Folder &other)
|
||||
|
||||
return *this;
|
||||
}
|
||||
Folder::Folder(const QString & folderName, const QString & folderPath)
|
||||
:knownParent(false),
|
||||
knownId(false),
|
||||
numChildren(-1)
|
||||
Folder::Folder(const QString &folderName, const QString &folderPath)
|
||||
: knownParent(false),
|
||||
knownId(false),
|
||||
numChildren(-1)
|
||||
{
|
||||
this->name = folderName;
|
||||
this->path = folderPath;
|
||||
|
Reference in New Issue
Block a user