Commit 165dad0c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Initialize pointer

parent 79c40529
......@@ -37,7 +37,7 @@ private Q_SLOTS:
void handleInternalLinks(const QUrl& url);
private:
QTextBrowser * m_textBrowser;
QTextBrowser * m_textBrowser = nullptr;
};
#endif
......@@ -78,15 +78,15 @@ private Q_SLOTS:
private:
const Debugger m_debugger;
KProcess * m_proc;
QTemporaryFile * m_temp;
KProcess * m_proc = nullptr;
QTemporaryFile * m_temp = nullptr;
QByteArray m_output;
State m_state;
BacktraceParser * m_parser;
BacktraceParser * m_parser = nullptr;
QString m_parsedBacktrace;
#ifdef BACKTRACE_PARSER_DEBUG
BacktraceParser * m_debugParser;
BacktraceParser * m_debugParser = nullptr;
#endif
};
......
......@@ -51,11 +51,11 @@ Q_SIGNALS:
void stateChanged();
private:
BacktraceGenerator * m_btGenerator;
BacktraceGenerator * m_btGenerator = nullptr;
Ui::Form ui;
BacktraceRatingWidget * m_backtraceRatingWidget;
QSyntaxHighlighter *m_highlighter;
DebugPackageInstaller * m_debugPackageInstaller;
BacktraceRatingWidget * m_backtraceRatingWidget = nullptr;
QSyntaxHighlighter *m_highlighter = nullptr;
DebugPackageInstaller * m_debugPackageInstaller = nullptr;
void setAsLoading();
......
......@@ -431,8 +431,8 @@ private:
bool m_logged;
SecurityMethod m_security;
KIO::Job * m_searchJob;
KXmlRpc::Client *m_xmlRpcClient;
KIO::Job * m_searchJob = nullptr;
KXmlRpc::Client *m_xmlRpcClient = nullptr;
enum SecurityStatus {SecurityDisabled, SecurityEnabled};
void callBugzilla(const char* method, const char* id,
......
......@@ -88,7 +88,7 @@ class DuplicateFinderJob : public KJob
void fetchBug(const QString &bugId);
private:
BugzillaManager *m_manager;
BugzillaManager *m_manager = nullptr;
QList<int> m_bugIds;
Result m_result;
};
......
......@@ -55,7 +55,7 @@ class ParseBugBacktraces : QObject
void parse(const QString &comment);
private:
BacktraceParser *m_parser;
BacktraceParser *m_parser = nullptr;
const BugReport m_bug;
QList<QList<BacktraceLine> > m_backtraces;
};
......
......@@ -57,7 +57,7 @@ private:
QString m_bugzillaVersionString;
const CrashedApplication * m_crashedAppPtr;
BugzillaManager * m_bugzillaManagerPtr;
BugzillaManager * m_bugzillaManagerPtr = nullptr;
bool m_bugzillaProductDisabled;
bool m_bugzillaVersionDisabled;
......
......@@ -65,7 +65,7 @@ private:
QHash<QLatin1String, KPageWidgetItem*> m_pageWidgetMap;
QPointer<AboutBugReportingDialog> m_aboutBugReportingDialog;
ReportInterface * m_reportInterface;
ReportInterface * m_reportInterface = nullptr;
bool m_canClose;
};
......
......@@ -122,9 +122,9 @@ private:
uint m_attachToBugNumber;
uint m_duplicate;
ProductMapping * m_productMapping;
BugzillaManager * m_bugzillaManager;
ApplicationDetailsExamples * m_appDetailsExamples;
ProductMapping * m_productMapping = nullptr;
BugzillaManager * m_bugzillaManager = nullptr;
ApplicationDetailsExamples * m_appDetailsExamples = nullptr;
};
#endif
......@@ -56,7 +56,7 @@ private Q_SLOTS:
private:
const Debugger m_debugger;
DetachedProcessMonitor *m_monitor;
DetachedProcessMonitor *m_monitor = nullptr;
};
#if 0
......
......@@ -27,7 +27,7 @@ class DebuggerManager : public QObject
{
Q_OBJECT
public:
DebuggerManager(const Debugger & internalDebugger,
explicit DebuggerManager(const Debugger & internalDebugger,
const QList<Debugger> & externalDebuggers,
QObject *parent = nullptr);
~DebuggerManager() override;
......
......@@ -48,8 +48,8 @@ class DebugPackageInstaller: public QObject
void canceled();
private:
KProcess * m_installerProcess;
QProgressDialog * m_progressDialog;
KProcess * m_installerProcess = nullptr;
QProgressDialog * m_progressDialog = nullptr;
QString m_executablePath;
QStringList m_missingLibraries;
};
......
......@@ -71,8 +71,8 @@ private:
~DrKonqi();
static DrKonqi *instance();
SystemInformation *m_systemInformation;
AbstractDrKonqiBackend *m_backend;
SystemInformation *m_systemInformation = nullptr;
AbstractDrKonqiBackend *m_backend = nullptr;
int m_signal;
QString m_appName;
......
......@@ -41,8 +41,8 @@ protected:
virtual DebuggerManager *constructDebuggerManager() = 0;
private:
CrashedApplication *m_crashedApplication;
DebuggerManager *m_debuggerManager;
CrashedApplication *m_crashedApplication = nullptr;
DebuggerManager *m_debuggerManager = nullptr;
};
class KCrashBackend : public QObject, public AbstractDrKonqiBackend
......
......@@ -60,20 +60,20 @@ private Q_SLOTS:
private:
void showAboutBugReporting();
QTabWidget * m_tabWidget;
QTabWidget * m_tabWidget = nullptr;
QPointer<AboutBugReportingDialog> m_aboutBugReportingDialog;
QWidget * m_introWidget;
QWidget * m_introWidget = nullptr;
Ui::MainWidget ui;
BacktraceWidget * m_backtraceWidget;
BacktraceWidget * m_backtraceWidget = nullptr;
QMenu *m_debugMenu;
QHash<AbstractDebuggerLauncher*, QAction*> m_debugMenuActions;
QDialogButtonBox* m_buttonBox;
QPushButton* m_debugButton;
QPushButton* m_restartButton;
QDialogButtonBox* m_buttonBox = nullptr;
QPushButton* m_debugButton = nullptr;
QPushButton* m_restartButton = nullptr;
};
#endif
......@@ -41,7 +41,7 @@ class FindConfigDataJob : public KJob
* @param productName e.g. "plasma"
* @param bugtrackerBaseUrl e.g. "https://bugs.kde.org"
*/
explicit FindConfigDataJob(const QString &productName, const QUrl &bugtrackerBaseUrl, QObject *parent = 0);
explicit FindConfigDataJob(const QString &productName, const QUrl &bugtrackerBaseUrl, QObject *parent = nullptr);
virtual ~FindConfigDataJob();
virtual void start();
......@@ -61,7 +61,7 @@ class FindConfigDataJob : public KJob
void receivedData(KJob *job);
private:
KIO::StoredTransferJob *m_job;
KIO::StoredTransferJob *m_job = nullptr;
QUrl m_url;
QString m_data;
QString m_errorString;
......
......@@ -39,7 +39,7 @@ private:
void fetchData(const QString & group);
QSettings m_settings;
FakeBacktraceGenerator *m_generator;
FakeBacktraceGenerator *m_generator = nullptr;
};
#endif
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