Commit 1941b69c authored by EXT Arnaud Clère's avatar EXT Arnaud Clère

Minor simplification

parent 6caa52f2
......@@ -309,13 +309,7 @@ protected:
s.append(r.data);
r = readString();
}
if (r.status == QCborStreamReader::Error) {
if (!s.isEmpty()) {
s.resize(0);
}
return isErrorFiltered(qBindUnexpectedData);
}
return true;
return r.status == QCborStreamReader::EndOfString || isErrorFiltered(qBindUnexpectedData);
} else { return false; } }
bool tryBind ( QByteArray& s) { if (caching) { return caching->tryBind(s) && cacheOut(); }
skipTag(); if (isByteArray()) {
......@@ -325,13 +319,7 @@ protected:
s.append(r.data);
r = readByteArray();
}
if (r.status == QCborStreamReader::Error) {
if (!s.isEmpty()) {
s.resize(0);
}
return isErrorFiltered(qBindUnexpectedData);
}
return true;
return r.status == QCborStreamReader::EndOfString || isErrorFiltered(qBindUnexpectedData);
} else { isErrorFiltered(qBindExpectedBytes); return false; } }
bool tryBind ( bool& b) { if (caching) { return caching->tryBind(b) && cacheOut(); }
skipTag(); if (isBool()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment