X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/90e389f6ec12e60a62c362296ffcf314feb5b03d..02efb4e1196ca467e796f65ef1d49db27a5254f8:/include/stg/message.h?ds=sidebyside 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;