diff --git a/libpkg/data/database.cpp b/libpkg/data/database.cpp index 4110930..76f6491 100644 --- a/libpkg/data/database.cpp +++ b/libpkg/data/database.cpp @@ -55,23 +55,7 @@ Database::Database(std::string &&name, std::string &&path) { } -Database::Database(Database &&other) - : name(std::move(other.name)) - , path(std::move(other.path)) - , filesPath(std::move(other.filesPath)) - , mirrors(std::move(other.mirrors)) - , usage(other.usage) - , signatureLevel(other.signatureLevel) - , arch(std::move(other.arch)) - , dependencies(std::move(other.dependencies)) - , localPkgDir(std::move(other.localPkgDir)) - , localDbDir(std::move(other.localDbDir)) - , lastUpdate(other.lastUpdate) - , syncFromMirror(other.syncFromMirror) - , toBeDiscarded(other.toBeDiscarded) - , m_storage(std::move(other.m_storage)) -{ -} +Database::Database(Database &&other) = default; Database::~Database() { diff --git a/libpkg/data/database.h b/libpkg/data/database.h index 6217c44..37e3be1 100644 --- a/libpkg/data/database.h +++ b/libpkg/data/database.h @@ -119,7 +119,7 @@ struct LIBPKG_EXPORT Database : public ReflectiveRapidJSON::JsonSerializable m_storage; }; -inline Database &Database::operator=(Database &&rhs) -{ - if (this != &rhs) { - *this = std::move(rhs); - } - return *this; -} - inline PackageSearchResult::PackageSearchResult() : db(nullptr) , id(0)