config
This commit is contained in:
@@ -526,7 +526,7 @@ inline PICout operator <<(PICout s, const PIConfig::Entry & v) {s << v.value();
|
||||
template<typename T>
|
||||
T readDeviceSetting(const PIString & name, const T & def, const PIConfig::Entry * em, const PIConfig::Entry * ep) {
|
||||
PIVariant v = PIVariant::fromValue<T>(def);
|
||||
if (ep != 0) {
|
||||
if (ep) {
|
||||
bool ex = false;
|
||||
v.setValueFromString(ep->getValue(name, def, &ex).toString());
|
||||
if (ex) return v.value<T>();
|
||||
|
||||
Reference in New Issue
Block a user