File web/main.cpp changed (mode: 100644) (index 760dde6..931353a) |
... |
... |
typename std::enable_if<vectorArgs<T>::value, void>::type |
50 |
50 |
setArgs(T &mt, const std::map<std::string, std::string> &args) |
setArgs(T &mt, const std::map<std::string, std::string> &args) |
51 |
51 |
{ |
{ |
52 |
52 |
std::vector<std::string> argsVector; |
std::vector<std::string> argsVector; |
53 |
|
for (const auto entry : args) { |
|
|
53 |
|
for (const auto &entry : args) { |
54 |
54 |
argsVector.push_back(entry.first + '=' + entry.second); |
argsVector.push_back(entry.first + '=' + entry.second); |
55 |
55 |
} |
} |
56 |
56 |
mt.setArgs(argsVector); |
mt.setArgs(argsVector); |