diff options
author | Jon Atack <jon@atack.com> | 2022-05-03 18:34:31 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2022-05-09 18:33:32 +0200 |
commit | 23854f84024c292164ce49b3fefee2a9b4fe0831 (patch) | |
tree | 85357b78c5d14e16cca00cd25f8e1063e3f9d67f /src/bitcoin-util.cpp | |
parent | 1ad5d5088d69939b0551de31d6c33c03153697c5 (diff) |
refactor: make MainSignalsInstance() a class
and use Doxygen documentation for it, per our developer notes.
Context:
MainSignalsInstance was created in 3a19fed9db5 and originally was a struct
collection of boost::signals methods moved to validationinterface.cpp, in order
to no longer need to include boost/signals in validationinterface.h.
MainSignalsInstance then evolved in d6815a23131 to remove boost/signals2 and became class-like.
[C.8: Use class rather than struct if any member is
non-public](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rc-class)
[C.2: Use class if the class has an invariant; use struct if the data members can vary
independently](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c2-use-class-if-the-class-has-an-invariant-use-struct-if-the-data-members-can-vary-independently)
A class also has the advantage of default private access, as opposed to public for a struct.
Diffstat (limited to 'src/bitcoin-util.cpp')
0 files changed, 0 insertions, 0 deletions