diff options
author | saturneric <[email protected]> | 2024-01-12 06:02:37 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-12 06:02:37 +0000 |
commit | bf538056b24a68b8fd235b1c50991ee8eb46a776 (patch) | |
tree | e1bab54095b80df62b321fb5bd69453f9f951b05 /src/core/function/basic/ChannelObject.cpp | |
parent | feat: improve api and ui of keys import and export (diff) | |
download | GpgFrontend-bf538056b24a68b8fd235b1c50991ee8eb46a776.tar.gz GpgFrontend-bf538056b24a68b8fd235b1c50991ee8eb46a776.zip |
refactor: use QString instead of std::string and improve threading system
Diffstat (limited to 'src/core/function/basic/ChannelObject.cpp')
-rw-r--r-- | src/core/function/basic/ChannelObject.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/function/basic/ChannelObject.cpp b/src/core/function/basic/ChannelObject.cpp index ddbfa603..18449ddb 100644 --- a/src/core/function/basic/ChannelObject.cpp +++ b/src/core/function/basic/ChannelObject.cpp @@ -34,14 +34,15 @@ namespace GpgFrontend { ChannelObject::ChannelObject() noexcept = default; -ChannelObject::ChannelObject(int channel, std::string type) +ChannelObject::ChannelObject(int channel, QString type) : channel_(channel), type_(std::move(type)) {} #ifdef DEBUG ChannelObject::~ChannelObject() noexcept { // using iostream instead of spdlog bacause at this time spdlog may have // already been destroyed. - std::cout << "releasing channel object: " << this->type_ << std::endl; + QTextStream(stdout) << "releasing channel object: " << this->type_ + << Qt::endl; } #else ChannelObject::~ChannelObject() noexcept = default; |