Cppcheck warning. Virtual function 'setValue' is called from constructor
'VFormulaProperty(const QString&name)'. --HG-- branch : develop
This commit is contained in:
parent
03d0c0377d
commit
126658f03f
|
@ -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>());
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user