Improve readability.

svn path=/branches/work/~ervin/sodep/; revision=923759
This commit is contained in:
Kevin Ottens 2009-02-09 11:28:34 +00:00
parent 501b3bfe1c
commit dab7dc3f1c

View File

@ -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;