applies cklang-tidy fixes
This commit is contained in:
@@ -14,20 +14,18 @@ struct packet {
|
||||
std::vector<uint8_t> routing;
|
||||
};
|
||||
|
||||
struct packet_ext: public tlm::tlm_extension<packet_ext>, public packet {
|
||||
struct packet_ext : public tlm::tlm_extension<packet_ext>, public packet {
|
||||
|
||||
packet_ext() = default;
|
||||
|
||||
packet_ext& operator=(packet_ext const& o) = default;
|
||||
|
||||
tlm_extension_base* clone() const override {
|
||||
return new packet_ext(*this);
|
||||
}
|
||||
tlm_extension_base* clone() const override { return new packet_ext(*this); }
|
||||
|
||||
void copy_from(tlm_extension_base const & o) override {
|
||||
void copy_from(tlm_extension_base const& o) override {
|
||||
auto* ext = dynamic_cast<packet_ext const*>(&o);
|
||||
if(ext)
|
||||
this->routing=ext->routing;
|
||||
this->routing = ext->routing;
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user