From b46089387c36f3668dc2830a0808fee56634910f Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sun, 20 Jun 2021 12:58:20 +0200 Subject: [PATCH] GUI: source file: use = default for copy constructor --- src/mkvtoolnix-gui/merge/source_file.cpp | 6 ------ src/mkvtoolnix-gui/merge/source_file.h | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/mkvtoolnix-gui/merge/source_file.cpp b/src/mkvtoolnix-gui/merge/source_file.cpp index 66c20677f..ff298923c 100644 --- a/src/mkvtoolnix-gui/merge/source_file.cpp +++ b/src/mkvtoolnix-gui/merge/source_file.cpp @@ -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() { diff --git a/src/mkvtoolnix-gui/merge/source_file.h b/src/mkvtoolnix-gui/merge/source_file.h index fff8ed942..3fd696237 100644 --- a/src/mkvtoolnix-gui/merge/source_file.h +++ b/src/mkvtoolnix-gui/merge/source_file.h @@ -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);