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>
This commit is contained in:
hjk
2018-02-01 10:59:24 +01:00
parent 7c41720479
commit 1b87d19a64
38 changed files with 155 additions and 165 deletions

View File

@@ -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);