Merge pull request #906 from jpnurmi/weffc++

Use member initialization lists [-Weffc++] (#270)
This commit is contained in:
Alexey Sokolov
2015-02-28 20:29:08 -08:00
26 changed files with 63 additions and 110 deletions

View File

@@ -30,8 +30,7 @@ using std::set;
class CIRCNetworkPingTimer : public CCron {
public:
CIRCNetworkPingTimer(CIRCNetwork *pNetwork) : CCron() {
m_pNetwork = pNetwork;
CIRCNetworkPingTimer(CIRCNetwork *pNetwork) : CCron(), m_pNetwork(pNetwork) {
SetName("CIRCNetworkPingTimer::" + m_pNetwork->GetUser()->GetUserName() + "::" + m_pNetwork->GetName());
Start(CIRCNetwork::PING_SLACK);
}