Commit 02fc8757 authored by Harald Sitter's avatar Harald Sitter 🏳️‍🌈
Browse files

initalize members in member initializer lists when possible

there is no reason why these members would be assigned in the body
parent f5cf5f2b
......@@ -27,7 +27,9 @@
#include "systeminformation.h"
DrKonqi::DrKonqi()
: m_signal(0)
: m_systemInformation(new SystemInformation())
, m_backend(new KCrashBackend())
, m_signal(0)
, m_pid(0)
, m_kdeinit(false)
, m_safer(false)
......@@ -35,8 +37,6 @@ DrKonqi::DrKonqi()
, m_keepRunning(false)
, m_thread(0)
{
m_backend = new KCrashBackend();
m_systemInformation = new SystemInformation();
}
DrKonqi::~DrKonqi()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment