diff options
author | hjk <[email protected]> | 2018-02-01 10:59:24 +0100 |
---|---|---|
committer | hjk <[email protected]> | 2018-02-01 10:28:54 +0000 |
commit | 1b87d19a64d45072e72980505a936df38dda4d72 (patch) | |
tree | 8b149ec832de2d8ad67f270ca6adccdce37b5418 /src/plugins/debugger/shared | |
parent | 7c417204792fd3c023cf389693d3b3fba8712167 (diff) |
Debugger: Modernize
Mostly nullptr instead of 0, but also a few bits of collateral damage.
Change-Id: I921991272aca921dcdecf302dfff3716e79dfc24
Reviewed-by: David Schulz <[email protected]>
Diffstat (limited to 'src/plugins/debugger/shared')
4 files changed, 9 insertions, 9 deletions
diff --git a/src/plugins/debugger/shared/cdbsymbolpathlisteditor.cpp b/src/plugins/debugger/shared/cdbsymbolpathlisteditor.cpp index c5ad4146333..668c1d4c531 100644 --- a/src/plugins/debugger/shared/cdbsymbolpathlisteditor.cpp +++ b/src/plugins/debugger/shared/cdbsymbolpathlisteditor.cpp @@ -197,7 +197,7 @@ QString CdbSymbolPathListEditor::symbolPath(const QString &cacheDir, return s; } -bool CdbSymbolPathListEditor::isSymbolServerPath(const QString &path, QString *cacheDir /* = 0 */) +bool CdbSymbolPathListEditor::isSymbolServerPath(const QString &path, QString *cacheDir /* = nullptr */) { if (!path.startsWith(QLatin1String(symbolServerPrefixC)) || !path.endsWith(QLatin1String(symbolServerPostfixC))) return false; @@ -226,7 +226,7 @@ bool CdbSymbolPathListEditor::isSymbolCachePath(const QString &path, QString *ca int CdbSymbolPathListEditor::indexOfSymbolPath(const QStringList &paths, CdbSymbolPathListEditor::SymbolPathMode mode, - QString *cacheDir /* = 0 */) + QString *cacheDir /* = nullptr */) { const int count = paths.size(); for (int i = 0; i < count; i++) { diff --git a/src/plugins/debugger/shared/cdbsymbolpathlisteditor.h b/src/plugins/debugger/shared/cdbsymbolpathlisteditor.h index 8a760d11b15..fbbb78de06c 100644 --- a/src/plugins/debugger/shared/cdbsymbolpathlisteditor.h +++ b/src/plugins/debugger/shared/cdbsymbolpathlisteditor.h @@ -48,7 +48,7 @@ namespace Internal { class CacheDirectoryDialog : public QDialog { Q_OBJECT public: - explicit CacheDirectoryDialog(QWidget *parent = 0); + explicit CacheDirectoryDialog(QWidget *parent = nullptr); void setPath(const QString &p); QString path() const; @@ -69,7 +69,7 @@ public: SymbolCachePath }; - explicit CdbSymbolPathListEditor(QWidget *parent = 0); + explicit CdbSymbolPathListEditor(QWidget *parent = nullptr); static bool promptCacheDirectory(QWidget *parent, QString *cacheDirectory); @@ -81,11 +81,11 @@ public: // Format a symbol path specification static QString symbolPath(const QString &cacheDir, SymbolPathMode mode); // Check for a symbol server path and extract local cache directory - static bool isSymbolServerPath(const QString &path, QString *cacheDir = 0); + static bool isSymbolServerPath(const QString &path, QString *cacheDir = nullptr); // Check for a symbol cache path and extract local cache directory - static bool isSymbolCachePath(const QString &path, QString *cacheDir = 0); + static bool isSymbolCachePath(const QString &path, QString *cacheDir = nullptr); // Check for symbol server in list of paths. - static int indexOfSymbolPath(const QStringList &paths, SymbolPathMode mode, QString *cacheDir = 0); + static int indexOfSymbolPath(const QStringList &paths, SymbolPathMode mode, QString *cacheDir = nullptr); private: void addSymbolPath(SymbolPathMode mode); diff --git a/src/plugins/debugger/shared/peutils.cpp b/src/plugins/debugger/shared/peutils.cpp index 29862ee22c9..3d89fa77b4d 100644 --- a/src/plugins/debugger/shared/peutils.cpp +++ b/src/plugins/debugger/shared/peutils.cpp @@ -223,7 +223,7 @@ bool getPDBFiles(const QString &peExecutableFileName, QStringList *rc, QString * { HANDLE hFile = NULL; HANDLE hFileMap = NULL; - void *fileMemory = 0; + void *fileMemory = nullptr; bool success = false; rc->clear(); diff --git a/src/plugins/debugger/shared/symbolpathsdialog.h b/src/plugins/debugger/shared/symbolpathsdialog.h index 304988e285b..db4c5965459 100644 --- a/src/plugins/debugger/shared/symbolpathsdialog.h +++ b/src/plugins/debugger/shared/symbolpathsdialog.h @@ -38,7 +38,7 @@ class SymbolPathsDialog : public QDialog Q_OBJECT public: - explicit SymbolPathsDialog(QWidget *parent = 0); + explicit SymbolPathsDialog(QWidget *parent = nullptr); ~SymbolPathsDialog(); bool useSymbolCache() const; |