From 860edd490a14520b7d9c34f5d1157f44c9aa00fb Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 21 Jun 2019 07:52:25 +0200 Subject: [PATCH] - defaulted a few empty constructors. --- src/doomdata.h | 2 +- src/g_shared/dthinker.h | 3 --- src/gamedata/g_mapinfo.h | 2 +- src/gamedata/info.h | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/doomdata.h b/src/doomdata.h index 05bcfbfc12..8e992a8124 100644 --- a/src/doomdata.h +++ b/src/doomdata.h @@ -441,7 +441,7 @@ struct FPlayerStart DVector3 pos; int16_t angle, type; - FPlayerStart() { } + FPlayerStart() = default; FPlayerStart(const FMapThing *mthing, int pnum) : pos(mthing->pos), angle(mthing->angle), diff --git a/src/g_shared/dthinker.h b/src/g_shared/dthinker.h index 26b4e06ac8..07d884fc41 100644 --- a/src/g_shared/dthinker.h +++ b/src/g_shared/dthinker.h @@ -142,9 +142,6 @@ public: FThinkerIterator (FLevelLocals *Level, const PClass *type, int statnum, DThinker *prev); DThinker *Next (bool exact = false); void Reinit (); - -protected: - FThinkerIterator() {} }; template class TThinkerIterator : public FThinkerIterator diff --git a/src/gamedata/g_mapinfo.h b/src/gamedata/g_mapinfo.h index d18c92fcb5..f105d3f0cd 100644 --- a/src/gamedata/g_mapinfo.h +++ b/src/gamedata/g_mapinfo.h @@ -528,7 +528,7 @@ struct FSkillInfo int Infighting; bool PlayerRespawn; - FSkillInfo() {} + FSkillInfo() = default; FSkillInfo(const FSkillInfo &other) { operator=(other); diff --git a/src/gamedata/info.h b/src/gamedata/info.h index df294ec78d..622ffe6a0c 100644 --- a/src/gamedata/info.h +++ b/src/gamedata/info.h @@ -267,7 +267,7 @@ struct FActorInfo uint8_t DefaultStateUsage = 0; // state flag defaults for blocks without a qualifier. - FActorInfo() {} + FActorInfo() = default; FActorInfo(const FActorInfo & other) { // only copy the fields that get inherited