File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -242,6 +242,16 @@ struct Sections {
242
242
}
243
243
};
244
244
245
+ RPCHelpMan::RPCHelpMan (const std::string& name, const std::string& description, const std::vector<RPCArg>& args)
246
+ : m_name{name}, m_description{description}, m_args{args}
247
+ {
248
+ std::set<std::string> named_args;
249
+ for (const auto & arg : m_args) {
250
+ // Should have unique named arguments
251
+ assert (named_args.insert (arg.m_name ).second );
252
+ }
253
+ }
254
+
245
255
std::string RPCHelpMan::ToString () const
246
256
{
247
257
std::string ret;
Original file line number Diff line number Diff line change @@ -109,10 +109,7 @@ struct RPCArg {
109
109
class RPCHelpMan
110
110
{
111
111
public:
112
- RPCHelpMan (const std::string& name, const std::string& description, const std::vector<RPCArg>& args)
113
- : m_name{name}, m_description{description}, m_args{args}
114
- {
115
- }
112
+ RPCHelpMan (const std::string& name, const std::string& description, const std::vector<RPCArg>& args);
116
113
117
114
std::string ToString () const ;
118
115
You can’t perform that action at this time.
0 commit comments