Gui: modernize C++11

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

View File

@@ -171,7 +171,7 @@ void ExpressionSpinBox::openFormulaDialog()
PropertyQuantity * qprop = freecad_dynamic_cast<PropertyQuantity>(getPath().getProperty());
Unit unit;
if (qprop != 0)
if (qprop != nullptr)
unit = qprop->getUnit();
Gui::Dialog::DlgExpressionInput* box = new Gui::Dialog::DlgExpressionInput(getPath(), getExpression(), unit, spinbox);
@@ -275,7 +275,7 @@ class UIntSpinBoxPrivate
public:
UnsignedValidator * mValidator;
UIntSpinBoxPrivate() : mValidator(0)
UIntSpinBoxPrivate() : mValidator(nullptr)
{
}
uint mapToUInt( int v ) const
@@ -324,7 +324,7 @@ UIntSpinBox::UIntSpinBox (QWidget* parent)
UIntSpinBox::~UIntSpinBox()
{
delete d->mValidator;
delete d; d = 0;
delete d; d = nullptr;
}
void UIntSpinBox::setRange(uint minVal, uint maxVal)