@@ -685,9 +685,9 @@ void ROOT::RPairField::ReconcileOnDiskField(const RNTupleDescriptor &desc)
685685 static const std::vector<std::string> prefixes = {" std::pair<" , " std::tuple<" };
686686
687687 EnsureMatchingOnDiskField (desc, kDiffTypeName ).ThrowOnError ();
688- const auto &fieldDesc = desc.GetFieldDescriptor (GetOnDiskId ());
689- EnsureMatchingTypePrefix (fieldDesc, prefixes).ThrowOnError ();
688+ EnsureMatchingTypePrefix (desc, prefixes).ThrowOnError ();
690689
690+ const auto &fieldDesc = desc.GetFieldDescriptor (GetOnDiskId ());
691691 const auto nOnDiskSubfields = fieldDesc.GetLinkIds ().size ();
692692 if (nOnDiskSubfields != 2 ) {
693693 throw ROOT::RException (
@@ -1232,9 +1232,9 @@ void ROOT::RTupleField::ReconcileOnDiskField(const RNTupleDescriptor &desc)
12321232 static const std::vector<std::string> prefixes = {" std::pair<" , " std::tuple<" };
12331233
12341234 EnsureMatchingOnDiskField (desc, kDiffTypeName ).ThrowOnError ();
1235- const auto &fieldDesc = desc.GetFieldDescriptor (GetOnDiskId ());
1236- EnsureMatchingTypePrefix (fieldDesc, prefixes).ThrowOnError ();
1235+ EnsureMatchingTypePrefix (desc, prefixes).ThrowOnError ();
12371236
1237+ const auto &fieldDesc = desc.GetFieldDescriptor (GetOnDiskId ());
12381238 const auto nOnDiskSubfields = fieldDesc.GetLinkIds ().size ();
12391239 const auto nSubfields = fSubfields .size ();
12401240 if (nOnDiskSubfields != nSubfields) {
@@ -1394,9 +1394,9 @@ void ROOT::RVariantField::ReconcileOnDiskField(const RNTupleDescriptor &desc)
13941394 static const std::vector<std::string> prefixes = {" std::variant<" };
13951395
13961396 EnsureMatchingOnDiskField (desc, kDiffTypeName ).ThrowOnError ();
1397- const auto &fieldDesc = desc.GetFieldDescriptor (GetOnDiskId ());
1398- EnsureMatchingTypePrefix (fieldDesc, prefixes).ThrowOnError ();
1397+ EnsureMatchingTypePrefix (desc, prefixes).ThrowOnError ();
13991398
1399+ const auto &fieldDesc = desc.GetFieldDescriptor (GetOnDiskId ());
14001400 if (fSubfields .size () != fieldDesc.GetLinkIds ().size ()) {
14011401 throw RException (R__FAIL (" number of variants on-disk do not match for " + GetQualifiedFieldName ()));
14021402 }
0 commit comments