Gui: modernize C++11

* use nullptr
This commit is contained in:
wmayer
2022-03-23 18:41:21 +01:00
parent be7e18757c
commit 1178df06b4
239 changed files with 1197 additions and 1197 deletions

View File

@@ -61,7 +61,7 @@ namespace Gui {
class SplashObserver : public Base::ILogger
{
public:
SplashObserver(QSplashScreen* splasher=0)
SplashObserver(QSplashScreen* splasher=nullptr)
: splash(splasher), alignment(Qt::AlignBottom|Qt::AlignLeft), textColor(Qt::black)
{
Base::Console().AttachObserver(this);
@@ -176,7 +176,7 @@ void SplashScreen::drawContents ( QPainter * painter )
// ------------------------------------------------------------------------------
AboutDialogFactory* AboutDialogFactory::factory = 0;
AboutDialogFactory* AboutDialogFactory::factory = nullptr;
AboutDialogFactory::~AboutDialogFactory()
{
@@ -774,7 +774,7 @@ void AboutDialog::on_copyButton_clicked()
/* TRANSLATOR Gui::LicenseView */
LicenseView::LicenseView(QWidget* parent)
: MDIView(0,parent,Qt::WindowFlags())
: MDIView(nullptr,parent,Qt::WindowFlags())
{
browser = new QTextBrowser(this);
browser->setOpenExternalLinks(true);