Commit bd34daf
committed
refactor: use std::make_unique instead of raw new in WriterProperties
Replace raw new with std::make_unique for better exception safety
and modern C++ best practices in WriterProperties::default_properties()
and WriterProperties::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 cf0fd37 commit bd34daf
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