aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/basic/ChannelObject.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-12-16 05:53:03 +0000
committersaturneric <[email protected]>2023-12-16 05:53:03 +0000
commit37215a895a649345165027971690dfdcd9106a32 (patch)
tree7a3da4e2d59ba75b43c9927fe7a98c9b6dec5ec6 /src/core/function/basic/ChannelObject.cpp
parentfix: slove memory problem of gpg context (diff)
downloadGpgFrontend-37215a895a649345165027971690dfdcd9106a32.tar.gz
GpgFrontend-37215a895a649345165027971690dfdcd9106a32.zip
fix: use secure memory management at impl class
Diffstat (limited to 'src/core/function/basic/ChannelObject.cpp')
-rw-r--r--src/core/function/basic/ChannelObject.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/core/function/basic/ChannelObject.cpp b/src/core/function/basic/ChannelObject.cpp
index 3f040ca6..451f9eeb 100644
--- a/src/core/function/basic/ChannelObject.cpp
+++ b/src/core/function/basic/ChannelObject.cpp
@@ -28,9 +28,7 @@
#include "ChannelObject.h"
-#include <ostream>
#include <utility>
-#include <iostream>
namespace GpgFrontend {
@@ -39,9 +37,7 @@ ChannelObject::ChannelObject() noexcept = default;
ChannelObject::ChannelObject(int channel, std::string type)
: channel_(channel), type_(std::move(type)) {}
-ChannelObject::~ChannelObject() noexcept {
- std::cout << "deleting channel object: " << type_ << std::endl;
-}
+ChannelObject::~ChannelObject() noexcept = default;
void ChannelObject::SetChannel(int channel) { this->channel_ = channel; }