diff options
author | saturneric <[email protected]> | 2023-12-03 12:27:47 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-12-03 12:27:47 +0000 |
commit | ae2717c3787a34a2c60d6aeef2d0b8bb8e551a1e (patch) | |
tree | 3e4ca2b2add05bd101efca9741c732506a7da8cc /src/core/function/basic/ChannelObject.cpp | |
parent | refeactor: reduce codes in pinentry (diff) | |
download | GpgFrontend-ae2717c3787a34a2c60d6aeef2d0b8bb8e551a1e.tar.gz GpgFrontend-ae2717c3787a34a2c60d6aeef2d0b8bb8e551a1e.zip |
feat: improve memory security of function framework
Diffstat (limited to '')
-rw-r--r-- | src/core/function/basic/ChannelObject.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/function/basic/ChannelObject.cpp b/src/core/function/basic/ChannelObject.cpp index 9485a278..7a41d4d1 100644 --- a/src/core/function/basic/ChannelObject.cpp +++ b/src/core/function/basic/ChannelObject.cpp @@ -34,6 +34,8 @@ ChannelObject::ChannelObject() noexcept = default; ChannelObject::ChannelObject(int channel) : channel_(channel) {} +ChannelObject::~ChannelObject() noexcept = default; + void ChannelObject::SetChannel(int channel) { this->channel_ = channel; } auto ChannelObject::GetChannel() const -> int { return channel_; } |