From 4e101aa6d68fa3f67a71ab2e1fbe105a806e43c7 Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Wed, 5 Apr 2023 12:15:02 -0400 Subject: [PATCH] [Cleanup] Use default dtor instead of empty dtor for EQTime in eqtime.cpp/eqtime.h (#3210) # Notes - This is better than using an empty dtor. --- common/eqtime.cpp | 6 +----- common/eqtime.h | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/common/eqtime.cpp b/common/eqtime.cpp index 8ece4ad69..eb11d89d8 100644 --- a/common/eqtime.cpp +++ b/common/eqtime.cpp @@ -58,10 +58,6 @@ EQTime::EQTime() SetCurrentEQTimeOfDay(start, time(0)); } -EQTime::~EQTime() -{ -} - //getEQTimeOfDay - Reads timeConvert and writes the result to eqTimeOfDay //This function was written by the ShowEQ Project. //Input: Current Time (as a time_t), a pointer to the TimeOfDay_Struct that will be written to. @@ -203,4 +199,4 @@ void EQTime::ToString(TimeOfDay_Struct *t, std::string &str) { t->month, t->day, t->year, t->hour, t->minute); buf[127] = '\0'; str = buf; -} \ No newline at end of file +} diff --git a/common/eqtime.h b/common/eqtime.h index f40b855f6..4f3a95fdd 100644 --- a/common/eqtime.h +++ b/common/eqtime.h @@ -18,7 +18,7 @@ public: //Constructor/destructor EQTime(TimeOfDay_Struct start_eq, time_t start_real); EQTime(); - ~EQTime(); + ~EQTime() = default; //Get functions int GetCurrentEQTimeOfDay( TimeOfDay_Struct *eqTimeOfDay ) { return(GetCurrentEQTimeOfDay(time(nullptr), eqTimeOfDay)); }