Commit c4f59747 authored by Dominik Haumann's avatar Dominik Haumann

Use in-class member initialization for m_printer member

parent 2730c436
......@@ -97,10 +97,6 @@ KmagApp::KmagApp(QWidget*)
// read options from config file
readOptions();
#ifndef QT_NO_PRINTER
m_printer = nullptr;
#endif // QT_NO_PRINTER
}
/**
......
......@@ -227,7 +227,7 @@ class KmagApp : public KXmlGuiWindow
#ifndef QT_NO_PRINTER
// Keep QPrinter so settings persist
QPrinter *m_printer;
QPrinter *m_printer = nullptr;
#endif // QT_NO_PRINTER
};
......
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