| 335 | } |
| 336 | |
| 337 | [[nodiscard]] const QString getString(const e_SrcSelector src) const |
| 338 | { |
| 339 | try |
| 340 | { |
| 341 | const LineData pld = getLineData(src).value(); |
| 342 | |
| 343 | return pld.getLine(); |
| 344 | } |
| 345 | catch(const std::bad_optional_access& e) |
| 346 | { |
| 347 | return QString(); |
| 348 | } |
| 349 | } |
| 350 | |
| 351 | [[nodiscard]] LineRef getLineInFile(e_SrcSelector src) const |
| 352 | { |
no test coverage detected