@@ -537,22 +537,22 @@ class GenericPointer {
537
537
*/
538
538
ValueType& GetWithDefault (ValueType& root, const ValueType& defaultValue, typename ValueType::AllocatorType& allocator) const {
539
539
bool alreadyExist;
540
- Value & v = Create (root, allocator, &alreadyExist);
540
+ ValueType & v = Create (root, allocator, &alreadyExist);
541
541
return alreadyExist ? v : v.CopyFrom (defaultValue, allocator);
542
542
}
543
543
544
544
// ! Query a value in a subtree with default null-terminated string.
545
545
ValueType& GetWithDefault (ValueType& root, const Ch* defaultValue, typename ValueType::AllocatorType& allocator) const {
546
546
bool alreadyExist;
547
- Value & v = Create (root, allocator, &alreadyExist);
547
+ ValueType & v = Create (root, allocator, &alreadyExist);
548
548
return alreadyExist ? v : v.SetString (defaultValue, allocator);
549
549
}
550
550
551
551
#if RAPIDJSON_HAS_STDSTRING
552
552
// ! Query a value in a subtree with default std::basic_string.
553
553
ValueType& GetWithDefault (ValueType& root, const std::basic_string<Ch>& defaultValue, typename ValueType::AllocatorType& allocator) const {
554
554
bool alreadyExist;
555
- Value & v = Create (root, allocator, &alreadyExist);
555
+ ValueType & v = Create (root, allocator, &alreadyExist);
556
556
return alreadyExist ? v : v.SetString (defaultValue, allocator);
557
557
}
558
558
#endif
0 commit comments