update to PIP 1.14
This commit is contained in:
@@ -135,7 +135,7 @@ bool Interface::configure(const PIString & config) {
|
||||
PIConfig conf(config, PIIODevice::ReadOnly);
|
||||
PIConfig::Entry & e(conf.getValue(core->typeLetter(s->cd_type_)));
|
||||
bool ret = false;
|
||||
setFileName(e.getValue("file", file(), &ret));
|
||||
setFileName(e.getValue("file", file(), &ret).toString());
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -524,7 +524,7 @@ void CDSection::read(const void * ep) {
|
||||
case CDType::cdNull: break;
|
||||
case CDType::cdK:
|
||||
c = CDType(id, e->getValue("v").comment(), e->getValue("v").type(), e->getValue("v").value(), e->getValue("f").value(), e->getValue("f").comment(), cd_type_);
|
||||
ev = e->getValue("ev", "");
|
||||
ev = e->getValue("ev", "").value();
|
||||
if (!ev.isEmpty())
|
||||
c.enum_values = c.parseEnumComment(ev);
|
||||
break;
|
||||
|
||||
2
pip
2
pip
Submodule pip updated: 6a6907b136...3454971100
@@ -149,7 +149,10 @@ public:
|
||||
|
||||
bool isEntryExists(const QString & name) const {return entryExists(this, name);}
|
||||
|
||||
bool toBool() const {return (_value.toLower().trimmed() == "true" || _value.toLower().trimmed() == "yes" || _value.toLower().trimmed() == "on" || _value.toInt() > 0);}
|
||||
bool toBool() const {return (_value.toLower().trimmed() == "true"
|
||||
|| _value.toLower().trimmed() == "yes"
|
||||
|| _value.toLower().trimmed() == "on"
|
||||
|| _value.toInt() > 0);}
|
||||
char toChar() const {return (_value.isEmpty() ? 0 : _value[0].toLatin1());}
|
||||
short toShort() const {return _value.toShort();}
|
||||
int toInt() const {return QString2int(_value);}
|
||||
|
||||
Reference in New Issue
Block a user