aboutsummaryrefslogtreecommitdiff
path: root/src/qt/initexecutor.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-07-14 12:21:54 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-07-14 21:54:32 +0300
commit8169fc4e73a87331e02502fc24e293831765c8b1 (patch)
tree7687a1ec243a766f3c22035cc6b72a4f79e1ae54 /src/qt/initexecutor.cpp
parentc82165a55701fe4ff604d7f30163051cd47c2363 (diff)
qt, refactor: Fix code styling of moved InitExecutor class
Diffstat (limited to 'src/qt/initexecutor.cpp')
-rw-r--r--src/qt/initexecutor.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/qt/initexecutor.cpp b/src/qt/initexecutor.cpp
index 697c8bd4da..7060f74dab 100644
--- a/src/qt/initexecutor.cpp
+++ b/src/qt/initexecutor.cpp
@@ -15,8 +15,8 @@
#include <QString>
#include <QThread>
-InitExecutor::InitExecutor(interfaces::Node& node) :
- QObject(), m_node(node)
+InitExecutor::InitExecutor(interfaces::Node& node)
+ : QObject(), m_node(node)
{
this->moveToThread(&m_thread);
m_thread.start();
@@ -30,7 +30,7 @@ InitExecutor::~InitExecutor()
qDebug() << __func__ << ": Stopped thread";
}
-void InitExecutor::handleRunawayException(const std::exception *e)
+void InitExecutor::handleRunawayException(const std::exception* e)
{
PrintExceptionContinue(e, "Runaway exception");
Q_EMIT runawayException(QString::fromStdString(m_node.getWarnings().translated));
@@ -38,8 +38,7 @@ void InitExecutor::handleRunawayException(const std::exception *e)
void InitExecutor::initialize()
{
- try
- {
+ try {
util::ThreadRename("qt-init");
qDebug() << __func__ << ": Running initialization in thread";
interfaces::BlockAndHeaderTipInfo tip_info;
@@ -54,8 +53,7 @@ void InitExecutor::initialize()
void InitExecutor::shutdown()
{
- try
- {
+ try {
qDebug() << __func__ << ": Running Shutdown in thread";
m_node.appShutdown();
qDebug() << __func__ << ": Shutdown finished";