refactor(Core): apply clang-tidy modernize-use-equals-default (#3834)

This commit is contained in:
Francesco Borzì
2020-12-07 19:21:55 +01:00
committed by GitHub
parent 0b8ec1f6ee
commit 1cf39b3d22
35 changed files with 48 additions and 56 deletions

View File

@@ -159,7 +159,7 @@ struct LootItem
// Should be called for non-reference LootStoreItem entries only (reference = 0)
explicit LootItem(LootStoreItem const& li);
LootItem() {}
LootItem() = default;
// Basic checks for player/item compatibility - if false no chance to see the item in the loot
bool AllowedForPlayer(Player const* player) const;
@@ -233,7 +233,7 @@ class LootTemplate
typedef std::vector<LootGroup*> LootGroups;
public:
LootTemplate() { }
LootTemplate() = default;
~LootTemplate();
// Adds an entry to the group (at loading stage)
@@ -268,7 +268,7 @@ private:
class LootValidatorRef : public Reference<Loot, LootValidatorRef>
{
public:
LootValidatorRef() {}
LootValidatorRef() = default;
void targetObjectDestroyLink() override {}
void sourceObjectDestroyLink() override {}
};