diff options
| author | 2020-02-06 11:25:42 +0000 | |
|---|---|---|
| committer | 2020-02-06 11:25:42 +0000 | |
| commit | 98e4ddfb21d285c8b675788c155bb204822fbd4a (patch) | |
| tree | 030eb18c989bf3c9e4768a538796e3221ca7934e /src/modules/m_callerid.cpp | |
| parent | In C++11 [io]fstream has std::string constructors; use them. (diff) | |
Use C++11 inline initialisation for class members.
Diffstat (limited to 'src/modules/m_callerid.cpp')
| -rw-r--r-- | src/modules/m_callerid.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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<User*> UserSet; typedef std::vector<callerid_data*> 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; |
