aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/basic/ChannelObject.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-12-03 12:27:47 +0000
committersaturneric <[email protected]>2023-12-03 12:27:47 +0000
commitae2717c3787a34a2c60d6aeef2d0b8bb8e551a1e (patch)
tree3e4ca2b2add05bd101efca9741c732506a7da8cc /src/core/function/basic/ChannelObject.cpp
parentrefeactor: reduce codes in pinentry (diff)
downloadGpgFrontend-ae2717c3787a34a2c60d6aeef2d0b8bb8e551a1e.tar.gz
GpgFrontend-ae2717c3787a34a2c60d6aeef2d0b8bb8e551a1e.zip
feat: improve memory security of function framework
Diffstat (limited to '')
-rw-r--r--src/core/function/basic/ChannelObject.cpp2
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_; }