diff options
Diffstat (limited to 'src/GpgFrontendContext.cpp')
-rw-r--r-- | src/GpgFrontendContext.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/GpgFrontendContext.cpp b/src/GpgFrontendContext.cpp index 72d2b0c1..5f51975a 100644 --- a/src/GpgFrontendContext.cpp +++ b/src/GpgFrontendContext.cpp @@ -32,6 +32,7 @@ #include <memory> +#include "core/utils/MemoryUtils.h" #include "ui/GpgFrontendApplication.h" namespace GpgFrontend { @@ -52,11 +53,11 @@ auto GpgFrontendContext::GetInstance() -> std::weak_ptr<GpgFrontendContext> { } void GpgFrontendContext::InitCoreApplication() { - app = std::make_unique<QCoreApplication>(argc, argv); + app = SecureCreateUniqueObject<QCoreApplication>(argc, argv); } void GpgFrontendContext::InitGUIApplication() { - app = std::make_unique<UI::GpgFrontendApplication>(argc, argv); + app = SecureCreateUniqueObject<UI::GpgFrontendApplication>(argc, argv); } } // namespace GpgFrontend
\ No newline at end of file |