Commit 68b57f8b authored by Boudewijn Rempt's avatar Boudewijn Rempt

Put KisApplication's d-pointer in a QScopedPointer

parent c3952850
This diff is collapsed.
......@@ -22,9 +22,9 @@
#define KIS_APPLICATION_H
#include <QPointer>
#include <QScopedPointer>
#include <qtsingleapplication/qtsingleapplication.h>
#include "kritaui_export.h"
#include <KisAutoSaveRecoveryDialog.h>
class KisMainWindow;
class KisApplicationPrivate;
......@@ -115,12 +115,10 @@ private:
void clearConfig();
private:
KisApplicationPrivate * const d;
class Private;
QScopedPointer<Private> d;
class ResetStarting;
friend class ResetStarting;
KisAutoSaveRecoveryDialog *m_autosaveDialog;
QPointer<KisMainWindow> m_mainWindow; // The first mainwindow we create on startup
bool m_batchRun;
};
#endif
......@@ -45,6 +45,7 @@
#include <KoXmlWriter.h>
#include <KoXmlReader.h>
#include <KoStoreDevice.h>
#include <KoDialog.h>
#include <klocalizedstring.h>
#include <kis_debug.h>
......
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