mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
f239861eba
3a0e76fc12b91b2846d756981e15f09b767a9c37 Replace remaining 0 with nullptr in Qt code (Ben Woosley) 9096276e0b2d5b7e19af9a5f3c144ef108ee55e0 Don't use zero as null pointer constant (-Wzero-as-null-pointer-constant) (practicalswift) Pull request description: This corrects all violations of `-Wzero-as-null-pointer-constant` identified in the Qt codebase. These changes are extracted from #15112 as suggested by @MarcoFalke to ease review. This is in service of enabling `-Wzero-as-null-pointer-constant`, which should eliminate this as a concern going forward. Note there are 2 non-Qt changes: `src/test/allocator_tests.cpp` and `src/wallet/db.cpp`. Tree-SHA512: 206bd668802147ba42bc413c2d7d259cb59aca9ec1da74a6bf2ca3932e60ae492faacbc61bcee0fd6b4b49a4d59d075b7e5404f0526b36c47718f9b0587e7768
23 lines
583 B
C++
23 lines
583 B
C++
// Copyright (c) 2011-2014 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef BITCOIN_QT_COINCONTROLTREEWIDGET_H
|
|
#define BITCOIN_QT_COINCONTROLTREEWIDGET_H
|
|
|
|
#include <QKeyEvent>
|
|
#include <QTreeWidget>
|
|
|
|
class CoinControlTreeWidget : public QTreeWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit CoinControlTreeWidget(QWidget *parent = nullptr);
|
|
|
|
protected:
|
|
virtual void keyPressEvent(QKeyEvent *event) override;
|
|
};
|
|
|
|
#endif // BITCOIN_QT_COINCONTROLTREEWIDGET_H
|