We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9deba2d commit faf8356Copy full SHA for faf8356
src/rpc/client.cpp
@@ -210,14 +210,9 @@ class CRPCConvertTable
210
211
CRPCConvertTable::CRPCConvertTable()
212
{
213
- const unsigned int n_elem =
214
- (sizeof(vRPCConvertParams) / sizeof(vRPCConvertParams[0]));
215
-
216
- for (unsigned int i = 0; i < n_elem; i++) {
217
- members.insert(std::make_pair(vRPCConvertParams[i].methodName,
218
- vRPCConvertParams[i].paramIdx));
219
- membersByName.insert(std::make_pair(vRPCConvertParams[i].methodName,
220
- vRPCConvertParams[i].paramName));
+ for (const auto& cp : vRPCConvertParams) {
+ members.emplace(cp.methodName, cp.paramIdx);
+ membersByName.emplace(cp.methodName, cp.paramName);
221
}
222
223
0 commit comments