| 50 | namespace Json { |
| 51 | template <typename T> |
| 52 | static std::unique_ptr<T> cloneUnique(const std::unique_ptr<T>& p) { |
| 53 | std::unique_ptr<T> r; |
| 54 | if (p) { |
| 55 | r = std::unique_ptr<T>(new T(*p)); |
| 56 | } |
| 57 | return r; |
| 58 | } |
| 59 | |
| 60 | // This is a walkaround to avoid the static initialization of Value::null. |
| 61 | // kNull must be word-aligned to avoid crashing on ARM. We use an alignment of |
no outgoing calls
no test coverage detected
searching dependent graphs…