Commit aac23b4
committed
refactor: use std::make_shared instead of raw new in RestCatalog
Replace raw new with std::make_shared for better exception safety
and modern C++ best practices in RestCatalog::Make().
Using std::make_shared provides:
- Better exception safety (no leak if constructor throws)
- More efficient memory allocation (single allocation for control block and object)
- More concise and readable code
- Consistent with modern C++ guidelines1 parent 7e784dc commit aac23b4
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
| 110 | + | |
| 111 | + | |
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
| |||
0 commit comments