aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/module/Module.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-10-23 06:29:25 +0000
committersaturneric <[email protected]>2023-10-23 06:29:25 +0000
commit31fc827672a131da020c4b4a0c3c8a145d477835 (patch)
treea825cdbf87d69d7449d00f7360c797e755e8f783 /src/core/module/Module.cpp
parentfix: improve the stability of thread system (diff)
downloadGpgFrontend-31fc827672a131da020c4b4a0c3c8a145d477835.tar.gz
GpgFrontend-31fc827672a131da020c4b4a0c3c8a145d477835.zip
feat: improve project structure and add GRT for modules
Diffstat (limited to 'src/core/module/Module.cpp')
-rw-r--r--src/core/module/Module.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/module/Module.cpp b/src/core/module/Module.cpp
index e4c40caa..71a91cb8 100644
--- a/src/core/module/Module.cpp
+++ b/src/core/module/Module.cpp
@@ -61,16 +61,16 @@ class Module::Impl {
ModuleIdentifier GetModuleIdentifier() const { return identifier_; }
- void SetGPC(GlobalModuleContextPtr gpc) { gpc_ = gpc; }
+ void SetGPC(GMCPtr gpc) { gpc_ = gpc; }
private:
- GlobalModuleContextPtr gpc_;
+ GMCPtr gpc_;
Module* m_ptr_;
const ModuleIdentifier identifier_;
const ModuleVersion version_;
const ModuleMetaData meta_data_;
- const GlobalModuleContextPtr get_gpc() {
+ const GMCPtr get_gpc() {
if (gpc_ == nullptr) {
throw std::runtime_error("module is not registered by module manager");
}
@@ -100,5 +100,5 @@ ModuleIdentifier Module::GetModuleIdentifier() const {
return p_->GetModuleIdentifier();
}
-void Module::SetGPC(GlobalModuleContextPtr gpc) { p_->SetGPC(gpc); }
+void Module::SetGPC(GMCPtr gpc) { p_->SetGPC(gpc); }
} // namespace GpgFrontend::Module \ No newline at end of file