summaryrefslogtreecommitdiff
path: root/src/playerrelations.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-02 12:55:32 +0000
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-02 12:55:32 +0000
commit5efaa5125fe92a5438b3cc2949f4d720bced5a7a (patch)
tree87f4da1382fb6179610182ca3e502e5365e66276 /src/playerrelations.h
parent2e60491ceb0548b0bea93207c13b974d6a6cf5cc (diff)
downloadmana-5efaa5125fe92a5438b3cc2949f4d720bced5a7a.tar.gz
mana-5efaa5125fe92a5438b3cc2949f4d720bced5a7a.tar.bz2
mana-5efaa5125fe92a5438b3cc2949f4d720bced5a7a.tar.xz
mana-5efaa5125fe92a5438b3cc2949f4d720bced5a7a.zip
General code cleanups
* Don't needlessly store or return raw pointers in BeingInfo * Less copying, more moving * Less else after return * Make AddDEF a template instead of a macro * Removed some unused includes * Use range-based for loops
Diffstat (limited to 'src/playerrelations.h')
-rw-r--r--src/playerrelations.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/playerrelations.h b/src/playerrelations.h
index 9c696105..a836a976 100644
--- a/src/playerrelations.h
+++ b/src/playerrelations.h
@@ -71,7 +71,7 @@ public:
std::string mDescription;
std::string mShortName;
- virtual ~PlayerIgnoreStrategy() {}
+ virtual ~PlayerIgnoreStrategy() = default;
/**
* Handle the ignoring of the indicated action by the indicated player.
@@ -82,8 +82,8 @@ public:
class PlayerRelationsListener
{
public:
- PlayerRelationsListener() { }
- virtual ~PlayerRelationsListener() { }
+ PlayerRelationsListener() = default;
+ virtual ~PlayerRelationsListener() = default;
virtual void updatedPlayer(const std::string &name) = 0;
};