aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/module/ModuleManager.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-10-25 10:26:26 +0000
committersaturneric <[email protected]>2023-10-25 10:26:26 +0000
commit124929609eabff19359caad276a10f1026793c0f (patch)
treec743376267928e60291b4f14bd78bd2b76f955c7 /src/core/module/ModuleManager.cpp
parentfeat: use rt listen publish event function in main windows' app version upgra... (diff)
downloadGpgFrontend-124929609eabff19359caad276a10f1026793c0f.tar.gz
GpgFrontend-124929609eabff19359caad276a10f1026793c0f.zip
fix: solve some code tidy issues
Diffstat (limited to 'src/core/module/ModuleManager.cpp')
-rw-r--r--src/core/module/ModuleManager.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/module/ModuleManager.cpp b/src/core/module/ModuleManager.cpp
index c151ebb1..4a78a85b 100644
--- a/src/core/module/ModuleManager.cpp
+++ b/src/core/module/ModuleManager.cpp
@@ -51,29 +51,29 @@ class ModuleManager::Impl {
void RegisterModule(ModulePtr module) {
task_runner_->PostTask(new Thread::Task(
- std::move([=](GpgFrontend::Thread::DataObjectPtr) -> int {
+ [=](GpgFrontend::Thread::DataObjectPtr) -> int {
module->SetGPC(gmc_);
gmc_->RegisterModule(module);
return 0;
- }),
+ },
__func__, nullptr));
}
void TriggerEvent(EventRefrernce event) {
task_runner_->PostTask(new Thread::Task(
- std::move([=](GpgFrontend::Thread::DataObjectPtr) -> int {
+ [=](GpgFrontend::Thread::DataObjectPtr) -> int {
gmc_->TriggerEvent(event);
return 0;
- }),
+ },
__func__, nullptr));
}
void ActiveModule(ModuleIdentifier identifier) {
task_runner_->PostTask(new Thread::Task(
- std::move([=](GpgFrontend::Thread::DataObjectPtr) -> int {
+ [=](GpgFrontend::Thread::DataObjectPtr) -> int {
gmc_->ActiveModule(identifier);
return 0;
- }),
+ },
__func__, nullptr));
}