From 98e4ddfb21d285c8b675788c155bb204822fbd4a Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 6 Feb 2020 11:25:42 +0000 Subject: Use C++11 inline initialisation for class members. --- src/modules/m_callerid.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/modules/m_callerid.cpp') diff --git a/src/modules/m_callerid.cpp b/src/modules/m_callerid.cpp index 0d4a8b752..93867a38c 100644 --- a/src/modules/m_callerid.cpp +++ b/src/modules/m_callerid.cpp @@ -49,7 +49,7 @@ class callerid_data typedef insp::flat_set UserSet; typedef std::vector CallerIdDataSet; - time_t lastnotify; + time_t lastnotify = 0; /** Users I accept messages from */ @@ -59,8 +59,6 @@ class callerid_data */ CallerIdDataSet wholistsme; - callerid_data() : lastnotify(0) { } - std::string ToString(bool human) const { std::ostringstream oss; -- cgit v1.3.1-10-gc9f91