Skip to content

Commit

Permalink
util: Document why ArgsManager (con/de)structor is not inline
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoFalke committed Apr 16, 2020
1 parent fae00a7 commit faf989f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/util/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <string>
#include <vector>

#include <univalue.h> // For util::SettingsValue = UniValue
class UniValue;

namespace util {

Expand Down
9 changes: 5 additions & 4 deletions src/util/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,11 @@ static bool CheckValid(const std::string& key, const util::SettingsValue& val, u
return true;
}

ArgsManager::ArgsManager()
{
// nothing to do
}
// Define default constructor and destructor that are not inline, so code instantiating this class doesn't need to
// #include class definitions for all members.
// For example, m_settings has an internal dependency on univalue.
ArgsManager::ArgsManager() {}
ArgsManager::~ArgsManager() {}

const std::set<std::string> ArgsManager::GetUnsuitableSectionOnlyArgs() const
{
Expand Down
1 change: 1 addition & 0 deletions src/util/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ class ArgsManager

public:
ArgsManager();
~ArgsManager();

/**
* Select the network in use
Expand Down

0 comments on commit faf989f

Please sign in to comment.