Commit d1b00bf
authored
Coding - Reducing relying on exceptions (Open-Cascade-SAS#676)
- Replaced try-catch blocks with explicit validation checks in PCDM_ReadWriter_1.cxx
- Added division-by-zero protection in XSDRAWSTL.cxx using precision-based comparison
- Improved error handling for integer parsing operations1 parent a50e3c9 commit d1b00bf
File tree
2 files changed
+12
-14
lines changed- src
- ApplicationFramework/TKCDF/PCDM
- Draw/TKXSDRAWSTL/XSDRAWSTL
2 files changed
+12
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
| 263 | + | |
263 | 264 | | |
264 | | - | |
| 265 | + | |
265 | 266 | | |
266 | | - | |
| 267 | + | |
267 | 268 | | |
268 | | - | |
269 | | - | |
270 | 269 | | |
271 | 270 | | |
272 | 271 | | |
| |||
426 | 425 | | |
427 | 426 | | |
428 | 427 | | |
429 | | - | |
| 428 | + | |
| 429 | + | |
430 | 430 | | |
431 | | - | |
| 431 | + | |
432 | 432 | | |
433 | | - | |
| 433 | + | |
434 | 434 | | |
435 | | - | |
436 | 435 | | |
437 | 436 | | |
438 | 437 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
820 | 820 | | |
821 | 821 | | |
822 | 822 | | |
823 | | - | |
| 823 | + | |
824 | 824 | | |
825 | | - | |
826 | | - | |
| 825 | + | |
827 | 826 | | |
828 | | - | |
| 827 | + | |
829 | 828 | | |
830 | | - | |
| 829 | + | |
831 | 830 | | |
832 | 831 | | |
833 | 832 | | |
| |||
0 commit comments