diff options
author | hjk <hjk@qt.io> | 2018-02-01 10:59:24 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2018-02-01 10:28:54 +0000 |
commit | 1b87d19a64d45072e72980505a936df38dda4d72 (patch) | |
tree | 8b149ec832de2d8ad67f270ca6adccdce37b5418 /src/plugins/debugger/watchhandler.cpp | |
parent | 7c417204792fd3c023cf389693d3b3fba8712167 (diff) | |
download | qt-creator-1b87d19a64d45072e72980505a936df38dda4d72.tar.gz |
Debugger: Modernize
Mostly nullptr instead of 0, but also a few bits of collateral damage.
Change-Id: I921991272aca921dcdecf302dfff3716e79dfc24
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/debugger/watchhandler.cpp')
-rw-r--r-- | src/plugins/debugger/watchhandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index 6400095a62..bfd299093a 100644 --- a/src/plugins/debugger/watchhandler.cpp +++ b/src/plugins/debugger/watchhandler.cpp @@ -336,7 +336,7 @@ public: template <class T> T *prepareObject(const WatchItem *item) { const QString key = item->key(); - T *t = 0; + T *t = nullptr; if (QWidget *w = findWidget(key)) { t = qobject_cast<T *>(w); if (!t) @@ -2229,7 +2229,7 @@ void WatchModel::showEditValue(const WatchItem *item) // QImage int width = 0, height = 0, nbytes = 0, imformat = 0; QByteArray ba; - uchar *bits = 0; + uchar *bits = nullptr; if (format == DisplayImageData) { ba = QByteArray::fromHex(item->editvalue.toUtf8()); QTC_ASSERT(ba.size() > 16, return); |