| 6 | |
| 7 | namespace { |
| 8 | func_t1 getFunction1(const QString& s) { |
| 9 | const QString functionName(s); |
| 10 | for (int i = 0; i < _number_functions; i++) { |
| 11 | if (functionName == QLatin1String(_functions[i].name)) { |
| 12 | if (_functions[i].argc == 1) |
| 13 | return std::get<func_t1>(_functions[i].fnct); |
| 14 | } |
| 15 | } |
| 16 | return nullptr; |
| 17 | } |
| 18 | |
| 19 | func_t2 getFunction2(const QString& s) { |
| 20 | const QString functionName(s); |
no outgoing calls
no test coverage detected