explicit referances in block processing
This commit is contained in:
parent
535cc66cd1
commit
6f4ce45413
|
@ -83,12 +83,12 @@ struct Block
|
||||||
* @param parent
|
* @param parent
|
||||||
*/
|
*/
|
||||||
void setParent(Message<Pdu> parent) {
|
void setParent(Message<Pdu> parent) {
|
||||||
for (auto p : *pdu)
|
for (auto & p : *pdu)
|
||||||
p->setParent(parent);
|
p->setParent(parent);
|
||||||
}
|
}
|
||||||
size_t streamSize() const override {
|
size_t streamSize() const override {
|
||||||
size_t s = 0;
|
size_t s = 0;
|
||||||
for (auto &child : *pdu)
|
for (const auto & child : *pdu)
|
||||||
s += child->streamSize();
|
s += child->streamSize();
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
@ -106,7 +106,7 @@ struct Block
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void oStream(Stream s) const override {
|
void oStream(Stream s) const override {
|
||||||
for ( const auto & child : *pdu )
|
for (const auto & child : *pdu)
|
||||||
child->oStream(s);
|
child->oStream(s);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue