Commit f60d9fc4 authored by Kurt Hindenburg's avatar Kurt Hindenburg

Disable copy constructors; use initialization list

parent d66e5465
......@@ -30,7 +30,10 @@
#include <QMenuBar>
demo_konsolepart::demo_konsolepart()
: KMainWindow()
: KMainWindow(),
_mainWindow(nullptr),
_terminalPart(nullptr),
_terminal(nullptr)
{
// Create terminal part and embed in into the main window
_terminalPart = createPart();
......
......@@ -40,6 +40,8 @@ public Q_SLOTS:
void quit();
private:
Q_DISABLE_COPY(demo_konsolepart)
KParts::ReadOnlyPart* createPart();
KMainWindow *_mainWindow;
......
Markdown is supported
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