Gui: modernize C++11
* use nullptr
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user