@@ -1831,7 +1831,7 @@ class GenericSchemaDocument {
1831
1831
const PointerType relPointer (s, len, allocator_);
1832
1832
if (relPointer.IsValid ()) {
1833
1833
// Get the subschema
1834
- if (const ValueType *v = relPointer.Get (*base)) {
1834
+ if (const ValueType *pv = relPointer.Get (*base)) {
1835
1835
// Now get the absolute JSON pointer by adding relative to base
1836
1836
PointerType pointer (basePointer);
1837
1837
for (SizeType i = 0 ; i < relPointer.GetTokenCount (); i++)
@@ -1842,7 +1842,7 @@ class GenericSchemaDocument {
1842
1842
// Call CreateSchema recursively, but first compute the in-scope id for the $ref target as we have jumped there
1843
1843
// TODO: cache pointer <-> id mapping
1844
1844
scopeId = pointer.GetUri (document, docId_);
1845
- CreateSchema (schema, pointer, *v , document, scopeId);
1845
+ CreateSchema (schema, pointer, *pv , document, scopeId);
1846
1846
return true ;
1847
1847
}
1848
1848
}
@@ -1852,14 +1852,14 @@ class GenericSchemaDocument {
1852
1852
// See if the fragment matches an id in this document.
1853
1853
// Search from the base we just established. Returns the subschema in the document and its absolute JSON pointer.
1854
1854
PointerType pointer = PointerType ();
1855
- if (const ValueType *v = FindId (*base, ref, pointer, UriType (ref.GetBase ()), true , basePointer)) {
1856
- if (v && !IsCyclicRef (pointer)) {
1855
+ if (const ValueType *pv = FindId (*base, ref, pointer, UriType (ref.GetBase ()), true , basePointer)) {
1856
+ if (!IsCyclicRef (pointer)) {
1857
1857
// GenericStringBuffer<EncodingType> sb;
1858
1858
// pointer.StringifyUriFragment(sb);
1859
1859
// Call CreateSchema recursively, but first compute the in-scope id for the $ref target as we have jumped there
1860
1860
// TODO: cache pointer <-> id mapping
1861
1861
scopeId = pointer.GetUri (document, docId_);
1862
- CreateSchema (schema, pointer, *v , document, scopeId);
1862
+ CreateSchema (schema, pointer, *pv , document, scopeId);
1863
1863
return true ;
1864
1864
}
1865
1865
}
0 commit comments