ksys/mes: Fix incorrect dtor for TransceiverId

This commit is contained in:
Léo Lam 2020-12-10 22:58:41 +01:00
parent 72e8d72ad2
commit ae23585ed2
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
1 changed files with 11 additions and 3 deletions

View File

@ -9,7 +9,15 @@ namespace ksys {
namespace mes {
struct TransceiverId {
TransceiverId() = default;
TransceiverId() { reset(); }
~TransceiverId() { reset(); }
void reset() {
_0 = -1;
_4 = -1;
_8 = nullptr;
_10 = nullptr;
}
TransceiverId& operator=(const TransceiverId& other) {
_0 = other._0;
@ -19,8 +27,8 @@ struct TransceiverId {
return *this;
}
s32 _0 = -1;
s32 _4 = -1;
s32 _0{};
s32 _4{};
void* _8{};
void* _10{};
};