fix for pip3
This commit is contained in:
@@ -395,7 +395,7 @@ CDType & CDSection::getByName(const PIString & name_) {
|
||||
else f = (np[i] == it.value().alias);
|
||||
//piCout << "s..." << it.key() << it.value().alias << f;
|
||||
if (f) {
|
||||
ns = &(it.valueRef());
|
||||
ns = &(it.value());
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -490,7 +490,7 @@ void CDSection::write(PIIODevice * d, const PIString & prefix) {
|
||||
else l = prefix + ".s";
|
||||
auto j = s.makeIterator();
|
||||
while (j.next()) {
|
||||
j.valueRef().write(d, l + "." + PIString::fromNumber(j.key()));
|
||||
j.value().write(d, l + "." + PIString::fromNumber(j.key()));
|
||||
}
|
||||
}
|
||||
if (prefix.isEmpty()) {
|
||||
|
||||
@@ -402,7 +402,7 @@ void CDItemModel::buildItem(CDItem * it, CDSection & r) {
|
||||
auto j = r.s.makeIterator();
|
||||
while (j.next()) {
|
||||
it->childs << new CDItem(interface, j.key(), CDItem::ItemCDSection, it);
|
||||
buildItem(it->childs.back(), j.valueRef());
|
||||
buildItem(it->childs.back(), j.value());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user