GUI: source file: use = default for copy constructor

This commit is contained in:
Moritz Bunkus 2021-06-20 12:58:20 +02:00
parent 354e7cae2e
commit b46089387c
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85
2 changed files with 1 additions and 7 deletions

View File

@ -40,12 +40,6 @@ fixAssociationsFor(char const *group,
SourceFile::SourceFile(QString const &fileName)
: m_fileName{QDir::toNativeSeparators(fileName)}
{
}
SourceFile::SourceFile(SourceFile const &other)
{
*this = other;
}
SourceFile::~SourceFile() {

View File

@ -44,7 +44,7 @@ public:
public:
explicit SourceFile(QString const &fileName = QString{""});
SourceFile(SourceFile const &other);
SourceFile(SourceFile const &other) = default;
virtual ~SourceFile();
SourceFile &operator =(SourceFile const &other);