| 231 | |
| 232 | |
| 233 | qreal parser_parseReal(string str) { |
| 234 | |
| 235 | try { |
| 236 | return precisionAgnosticStringToFloat(str); |
| 237 | } catch (const invalid_argument&) { |
| 238 | error_attemptedToParseRealFromInvalidString(); |
| 239 | } catch (const out_of_range&) { |
| 240 | error_attemptedToParseOutOfRangeReal(); |
| 241 | } |
| 242 | |
| 243 | // unreachable |
| 244 | return -1; |
| 245 | } |
| 246 | |
| 247 | |
| 248 |
no test coverage detected