* @return the string literal value of a given field of a given tuple value, * or an empty string if the tuple value does not contain the field */
| 55 | * or an empty string if the tuple value does not contain the field |
| 56 | */ |
| 57 | [[nodiscard]] QString literalIfHasField(const MI::Value& tupleValue, const QString& fieldName) |
| 58 | { |
| 59 | return tupleValue.hasField(fieldName) ? tupleValue[fieldName].literal() : QString{}; |
| 60 | } |
| 61 | |
| 62 | struct SignalInfo |
| 63 | { |
no test coverage detected