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

delegate construction

now that AbstractDrKonqiBackend is a qobject we can do constructor
delegation as we have no special constructor needs.

KCrashBackend delegates to AbstractDrKonqiBackend delegates to QObject.
parent 78c416ae
......@@ -43,11 +43,6 @@ bool AbstractDrKonqiBackend::init()
return true;
}
KCrashBackend::KCrashBackend()
, AbstractDrKonqiBackend()
, m_state(ProcessRunning)
{
}
KCrashBackend::~KCrashBackend()
{
......
......@@ -42,7 +42,7 @@ class KCrashBackend : public AbstractDrKonqiBackend
{
Q_OBJECT
public:
KCrashBackend();
using AbstractDrKonqiBackend::AbstractDrKonqiBackend;
~KCrashBackend() override;
bool init() override;
......@@ -61,7 +61,7 @@ private:
static qint64 s_pid; // for use by the emergencySaveFunction
enum State { ProcessRunning, ProcessStopped, DebuggerRunning };
State m_state;
State m_state = ProcessRunning;
};
#endif // DRKONQIBACKENDS_H
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