Skip to content

Commit a284bbb

Browse files
hebastolaanwj
authored andcommitted
refactor: Styling w/ clang-format, comment update
Github-Pull: bitcoin#17427 Rebased-From: 1828c6f Tree-SHA512: 140b723bd9c8d8823ecb84d7f774d213a9e9dac45fb0de82c43521cf8276d946feaa1b7c0b7d40f51dbab38c88c53b4680da1965b1e0ce7f858eb35b2c4537da
1 parent 2aba76c commit a284bbb

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
@@ -439,17 +439,19 @@ int GuiMain(int argc, char* argv[])
439439

440440
BitcoinApplication app(*node);
441441

442-
// Register meta types used for QMetaObject::invokeMethod
443-
qRegisterMetaType< bool* >();
442+
// Register meta types used for QMetaObject::invokeMethod and Qt::QueuedConnection
443+
qRegisterMetaType<bool*>();
444444
#ifdef ENABLE_WALLET
445445
qRegisterMetaType<WalletModel*>();
446446
#endif
447-
// Need to pass name here as CAmount is a typedef (see http://qt-project.org/doc/qt-5/qmetatype.html#qRegisterMetaType)
448-
// IMPORTANT if it is no longer a typedef use the normal variant above
449-
qRegisterMetaType< CAmount >("CAmount");
447+
// Register typedefs (see http://qt-project.org/doc/qt-5/qmetatype.html#qRegisterMetaType)
448+
// IMPORTANT: if CAmount is no longer a typedef use the normal variant above (see https://doc.qt.io/qt-5/qmetatype.html#qRegisterMetaType-1)
449+
qRegisterMetaType<CAmount>("CAmount");
450450
qRegisterMetaType<size_t>("size_t");
451-
qRegisterMetaType< std::function<void()> >("std::function<void()>");
451+
452+
qRegisterMetaType<std::function<void()>>("std::function<void()>");
452453
qRegisterMetaType<QMessageBox::Icon>("QMessageBox::Icon");
454+
453455
/// 2. Parse command-line options. We do this after qt in order to show an error if there are problems parsing these
454456
// Command-line options take precedence:
455457
node->setupServerArgs();

0 commit comments

Comments
 (0)