Commit e5b00d2
committed
refactor: use std::make_unique instead of raw new in ReaderProperties
Replace raw new with std::make_unique for better exception safety
and modern C++ best practices in ReaderProperties::default_properties()
and ReaderProperties::FromMap().
Using std::make_unique provides:
- Better exception safety (no leak if constructor throws)
- More concise and readable code
- Consistent with modern C++ guidelines1 parent 7e784dc commit e5b00d2
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
0 commit comments