diff options
author | saturneric <[email protected]> | 2023-10-23 10:27:25 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-10-23 10:27:25 +0000 |
commit | 8fdeb3af49999f29e017b7f7a70bd36f020ba721 (patch) | |
tree | db90267c3c88d488570a8e359bd511b64c5686d8 /src/core/module/GlobalModuleContext.cpp | |
parent | feat: improve project structure and add GRT for modules (diff) | |
download | GpgFrontend-8fdeb3af49999f29e017b7f7a70bd36f020ba721.tar.gz GpgFrontend-8fdeb3af49999f29e017b7f7a70bd36f020ba721.zip |
perf: reduce header includes and improve build speed
Diffstat (limited to 'src/core/module/GlobalModuleContext.cpp')
-rw-r--r-- | src/core/module/GlobalModuleContext.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/core/module/GlobalModuleContext.cpp b/src/core/module/GlobalModuleContext.cpp index 10c3e549..de1e244b 100644 --- a/src/core/module/GlobalModuleContext.cpp +++ b/src/core/module/GlobalModuleContext.cpp @@ -28,12 +28,10 @@ #include "GlobalModuleContext.h" -#include <boost/format/format_fwd.hpp> -#include <boost/random/mersenne_twister.hpp> -#include <boost/random/uniform_int_distribution.hpp> -#include <memory> -#include <optional> -#include <string> +#include <boost/date_time.hpp> +#include <boost/format.hpp> +#include <boost/random.hpp> +#include <set> #include <unordered_map> #include <unordered_set> @@ -48,11 +46,11 @@ namespace GpgFrontend::Module { class GlobalModuleContext::Impl { public: Impl(TaskRunnerPtr task_runner) - : default_task_runner_(task_runner), - random_gen_( + : random_gen_( (boost::posix_time::microsec_clock::universal_time() - boost::posix_time::ptime(boost::gregorian::date(1970, 1, 1))) - .total_milliseconds()) { + .total_milliseconds()), + default_task_runner_(task_runner) { // Initialize acquired channels with default values. acquired_channel_.insert(GPGFRONTEND_DEFAULT_CHANNEL); acquired_channel_.insert(GPGFRONTEND_NON_ASCII_CHANNEL); |