X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/90e389f6ec12e60a62c362296ffcf314feb5b03d..862223ebc00e6153adb8f02f9c3b117547d16314:/include/stg/message.h diff --git a/include/stg/message.h b/include/stg/message.h index 16fe566f..5a0e918e 100644 --- a/include/stg/message.h +++ b/include/stg/message.h @@ -27,7 +27,7 @@ STG_MSG_HDR() showTime(0), repeat(0), repeatPeriod(0) -{}; +{} uint64_t id; unsigned ver; @@ -41,12 +41,12 @@ unsigned repeatPeriod; //----------------------------------------------------------------------------- struct STG_MSG { -STG_MSG() {}; +STG_MSG() : header(), text() {} time_t GetNextSendTime() const { return header.lastSendTime + header.repeat * 60; -}; +} STG_MSG_HDR header; std::string text;