| 2488 | namespace Json { |
| 2489 | template <typename T> |
| 2490 | static std::unique_ptr<T> cloneUnique(const std::unique_ptr<T>& p) { |
| 2491 | std::unique_ptr<T> r; |
| 2492 | if (p) { |
| 2493 | r = std::unique_ptr<T>(new T(*p)); |
| 2494 | } |
| 2495 | return r; |
| 2496 | } |
| 2497 | |
| 2498 | // This is a walkaround to avoid the static initialization of Value::null. |
| 2499 | // kNull must be word-aligned to avoid crashing on ARM. We use an alignment of |
no outgoing calls
no test coverage detected