diff --git a/src/FactSystem/FactMetaData.cc b/src/FactSystem/FactMetaData.cc index ea46a6d..bb5945b 100644 --- a/src/FactSystem/FactMetaData.cc +++ b/src/FactSystem/FactMetaData.cc @@ -133,3 +133,9 @@ QVariant FactMetaData::_maxForType(void) // Make windows compiler happy, even switch is full cased return QVariant(); } + +void FactMetaData::clearDefaultValue(void) +{ + _defaultValue = 0; + _defaultValueAvailable = false; +} diff --git a/src/FactSystem/FactMetaData.h b/src/FactSystem/FactMetaData.h index dd185ac..2405198 100644 --- a/src/FactSystem/FactMetaData.h +++ b/src/FactSystem/FactMetaData.h @@ -73,10 +73,9 @@ public: void setUnits(const QString& units) { _units = units; } void setMin(const QVariant& max); void setMax(const QVariant& max); - - /// Initialize the meta data given only the type. - void initFromTypeOnly(ValueType_t initType); + /// Used to clear a default value which it is found to possibly be invalid + void clearDefaultValue(void); private: QVariant _minForType(void);