mirror of
https://github.com/taglib/taglib.git
synced 2026-06-14 02:09:27 -04:00
default some more (#1135)
* remove defaulted constructor It gets implicitly generated. Signed-off-by: Rosen Penev <rosenp@gmail.com> * default some more swap is not needed here as shared_ptr is copyable. Signed-off-by: Rosen Penev <rosenp@gmail.com> --------- Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -341,7 +341,7 @@ FileRef::FileRef(File *file) :
|
||||
d->file = file;
|
||||
}
|
||||
|
||||
FileRef::FileRef(const FileRef &ref) = default;
|
||||
FileRef::FileRef(const FileRef &) = default;
|
||||
|
||||
FileRef::~FileRef() = default;
|
||||
|
||||
@@ -427,11 +427,7 @@ bool FileRef::isNull() const
|
||||
return (!d->file || !d->file->isValid());
|
||||
}
|
||||
|
||||
FileRef &FileRef::operator=(const FileRef &ref)
|
||||
{
|
||||
FileRef(ref).swap(*this);
|
||||
return *this;
|
||||
}
|
||||
FileRef &FileRef::operator=(const FileRef &) = default;
|
||||
|
||||
void FileRef::swap(FileRef &ref)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user