aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/GpgCoreInit.cpp
diff options
context:
space:
mode:
authorSaturn&Eric <[email protected]>2022-05-09 15:58:36 +0000
committerGitHub <[email protected]>2022-05-09 15:58:36 +0000
commita1bef0cc06a5c128a0f868ab59d7c153f5ab8aec (patch)
treef55b3c76f4203590b4bf40b6ab2f97965f5a51ec /src/core/GpgCoreInit.cpp
parentMerge pull request #56 from saturneric/develop-2.0.6 (diff)
parentfix: modified init order (diff)
downloadGpgFrontend-a1bef0cc06a5c128a0f868ab59d7c153f5ab8aec.tar.gz
GpgFrontend-a1bef0cc06a5c128a0f868ab59d7c153f5ab8aec.zip
Merge pull request #57 from saturneric/develop-2.0.7v2.0.7
Develop 2.0.7
Diffstat (limited to 'src/core/GpgCoreInit.cpp')
-rw-r--r--src/core/GpgCoreInit.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/core/GpgCoreInit.cpp b/src/core/GpgCoreInit.cpp
index e9b8fcdc..41cf99cb 100644
--- a/src/core/GpgCoreInit.cpp
+++ b/src/core/GpgCoreInit.cpp
@@ -28,6 +28,9 @@
#include "GpgCoreInit.h"
+#include <memory>
+
+#include "GpgFunctionObject.h"
#include "core/GpgContext.h"
#include "core/function/GlobalSettingStation.h"
@@ -70,27 +73,25 @@ void init_logging() {
void init_gpgfrontend_core() {
// init default channel
GpgFrontend::GpgContext::CreateInstance(
- GPGFRONTEND_DEFAULT_CHANNEL,
- [&]() -> std::unique_ptr<GpgFrontend::GpgContext> {
+ GPGFRONTEND_DEFAULT_CHANNEL, [&]() -> std::unique_ptr<ChannelObject> {
GpgFrontend::GpgContextInitArgs args;
- return std::make_unique<GpgFrontend::GpgContext>(args);
+ return std::unique_ptr<ChannelObject>(new GpgContext(args));
});
// init non-ascii channel
GpgFrontend::GpgContext::CreateInstance(
- GPGFRONTEND_NON_ASCII_CHANNEL,
- [&]() -> std::unique_ptr<GpgFrontend::GpgContext> {
+ GPGFRONTEND_NON_ASCII_CHANNEL, [&]() -> std::unique_ptr<ChannelObject> {
GpgFrontend::GpgContextInitArgs args;
args.ascii = false;
- return std::make_unique<GpgFrontend::GpgContext>(args);
+ return std::unique_ptr<ChannelObject>(new GpgContext(args));
});
}
void new_default_settings_channel(int channel) {
GpgFrontend::GpgContext::CreateInstance(
- channel, [&]() -> std::unique_ptr<GpgFrontend::GpgContext> {
+ channel, [&]() -> std::unique_ptr<ChannelObject> {
GpgFrontend::GpgContextInitArgs args;
- return std::make_unique<GpgFrontend::GpgContext>(args);
+ return std::unique_ptr<ChannelObject>(new GpgContext(args));
});
}