Improve readability.
svn path=/branches/work/~ervin/sodep/; revision=923759
This commit is contained in:
parent
501b3bfe1c
commit
dab7dc3f1c
@ -231,13 +231,10 @@ inline SodepValue sodepReadValue(QIODevice &io)
|
|||||||
for (int i=0; i<childrenCount; ++i) {
|
for (int i=0; i<childrenCount; ++i) {
|
||||||
QString name = sodepReadString(io);
|
QString name = sodepReadString(io);
|
||||||
|
|
||||||
QList<SodepValue> values;
|
|
||||||
qint32 valueCount = sodepReadInt32(io);
|
qint32 valueCount = sodepReadInt32(io);
|
||||||
for (int j=0; j<valueCount; ++j) {
|
for (int j=0; j<valueCount; ++j) {
|
||||||
values << sodepReadValue(io);
|
result.children(name) << sodepReadValue(io);
|
||||||
}
|
}
|
||||||
|
|
||||||
result.children(name) = values;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user