Cppcheck warning. Virtual function 'setValue' is called from constructor

'VFormulaProperty(const QString&name)'.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-07-09 10:25:34 +03:00
parent 03d0c0377d
commit 126658f03f

View File

@ -47,7 +47,8 @@ VFormulaProperty::VFormulaProperty(const QString &name)
tmpFormula->setUpdateBehaviour(true, false);
tmpFormula->setOsSeparator(qApp->Settings()->GetOsSeparator());
setValue(0);
// Cannot use virtual function setValue in constructor
SetFormula(QVariant(0).value<VFormula>());
}
//---------------------------------------------------------------------------------------------------------------------