Skip to content

Commit 1828c6f

Browse files
committed
refactor: Styling w/ clang-format, comment update
1 parent 88a94f7 commit 1828c6f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/qt/bitcoin.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -430,17 +430,19 @@ int GuiMain(int argc, char* argv[])
430430

431431
BitcoinApplication app(*node);
432432

433-
// Register meta types used for QMetaObject::invokeMethod
434-
qRegisterMetaType< bool* >();
433+
// Register meta types used for QMetaObject::invokeMethod and Qt::QueuedConnection
434+
qRegisterMetaType<bool*>();
435435
#ifdef ENABLE_WALLET
436436
qRegisterMetaType<WalletModel*>();
437437
#endif
438-
// Need to pass name here as CAmount is a typedef (see http://qt-project.org/doc/qt-5/qmetatype.html#qRegisterMetaType)
439-
// IMPORTANT if it is no longer a typedef use the normal variant above
440-
qRegisterMetaType< CAmount >("CAmount");
438+
// Register typedefs (see http://qt-project.org/doc/qt-5/qmetatype.html#qRegisterMetaType)
439+
// IMPORTANT: if CAmount is no longer a typedef use the normal variant above (see https://doc.qt.io/qt-5/qmetatype.html#qRegisterMetaType-1)
440+
qRegisterMetaType<CAmount>("CAmount");
441441
qRegisterMetaType<size_t>("size_t");
442-
qRegisterMetaType< std::function<void()> >("std::function<void()>");
442+
443+
qRegisterMetaType<std::function<void()>>("std::function<void()>");
443444
qRegisterMetaType<QMessageBox::Icon>("QMessageBox::Icon");
445+
444446
/// 2. Parse command-line options. We do this after qt in order to show an error if there are problems parsing these
445447
// Command-line options take precedence:
446448
node->setupServerArgs();

0 commit comments

Comments
 (0)