mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-17 20:04:22 -05:00
imprved readability of the logic in rstlvidset serialization
This commit is contained in:
parent
6008599f02
commit
dc03f8ff49
@ -92,11 +92,15 @@ template<class ID_CLASS,uint32_t TLV_TYPE> class RS_DEPRECATED_FOR(std::set<>) t
|
||||
ids.insert(id) ;
|
||||
}
|
||||
if(*offset != tlvend)
|
||||
{
|
||||
std::cerr << "(EE) deserialisaiton error in " << __PRETTY_FUNCTION__ << std::endl;
|
||||
else if(!ok)
|
||||
ok = false;
|
||||
}
|
||||
|
||||
if(!ok)
|
||||
std::cerr << "(WW) something wrong in ID_CLASS.deserialise in " << __PRETTY_FUNCTION__ << std::endl;
|
||||
|
||||
return *offset == tlvend ;
|
||||
return ok;
|
||||
}
|
||||
virtual std::ostream &print(std::ostream &out, uint16_t /* indent */) const
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user