diff --git a/src/FactSystem/FactMetaData.cc b/src/FactSystem/FactMetaData.cc index ea46a6d3979974791b6ce6d31df2e05baaa29cde..bb5945baf64c2cabe65c007e5281c4f9d38fe625 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 dd185ac8c4557d2275107d883c81d8182139bb48..2405198d6a394548ea6acd373c7bb55a5a8a1202 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);